Nginx CORS error

Request header field Access-Control-Allow-Headers is not allowed by Access-Control-Allow-Headersadd these lines in server part of the config file   add_header ‘Access-Control-Allow-Origin’ * always;        add_header...

nginx access denied

access deniedAfter searching , I found it.It’s all deals with SELINUX which is a security featuredisable selinux completely and reboot machine

404 nginx error

Change the line in the location block to:try_files $uri $uri/ /index.php?q=$uri&$args;and reload nginxsudo systemctl reload nginxAll should be well 🙂

Nginx and PHP-FPM Configuration and Optimizing

Nginx Configuration and Optimizing Tips and TricksNginx Tip 1. – Organize Nginx Configuration FilesNormally Nginx configuration files are located under /etc/nginx path.One good way to organize configuration files is use Debian/Ubuntu Apache style setup:##...