Commit 68258a81 authored by omega8cc's avatar omega8cc Committed by anarcat

Fix for Nginx configuration: if the file does not exist, send 404 error...

Fix for Nginx configuration: if the file does not exist, send 404 error instead of back to parent location.
parent 785076e1
......@@ -305,7 +305,7 @@
### send all non-static requests to php-fpm, restricted to known php files
###
location ~* ^/(?:index|boost_stats|update|authorize|xmlrpc)\.php$ {
try_files $uri @drupal; ### check for existence of php file first
try_files $uri =404; ### check for existence of php file first
fastcgi_pass 127.0.0.1:9000; ### php-fpm listening on port 9000
track_uploads uploads 60s; ### required for upload progress
}
......
......@@ -291,7 +291,7 @@
### send all non-static requests to php-fpm, restricted to known php files
###
location ~* ^/(?:index|boost_stats|update|authorize|xmlrpc)\.php$ {
try_files $uri @drupal; ### check for existence of php file first
try_files $uri =404; ### check for existence of php file first
fastcgi_pass 127.0.0.1:9000; ### php-fpm listening on port 9000
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment