Question
Nginx and PHP getting error 404 with scripts
server { listen 80; server_name mydomain.com; location / { root /usr/share/nginx/html/mydomain.com; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }Is there another config file I should be checking? Or perhaps there is a different config since I'm running subdomains? Thanks for your time.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×