Nginx Execute Multiple Location Blocks

view full story

http://serverfault.com – I have the following nginx location block: location ^~ /publish { allow; #Allow home allow; deny all; } Then this location block to process PHP after: location ~\.php { try_files $uri =404; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; fastcgi_pass; include /etc/nginx/fastcgi_params; } The problem is that files inside of /publish like execute.php aren't being processed by the fastcgi PHP processor, they simply output the pure PHP code when called from CU (HowTos)