The problem is that a request to /publish/execute.php is only hitting
the first location block, and not hitting the fastcgi PHP execution
location block. How can I make the publish location block also check for
PHP files and if so, execute them according to the second location
block?
The problem is that a request to /publish/execute.php is only hitting
the first location block, and not hitting the fastcgi PHP execution
location block. How can I make the publish location block also check for
PHP files and if so, execute them according to the second location
block?
Put another .php$ block inside the /publish block.
Thanks for the reply. This is a bit sloppy though because let us assume
I have multiple publish location blocks. Copy and pasting the PHP
location block multiple times is bad practice, because if I need to make
changes, I have to update the PHP block multiple times. Is there a way
to make the PHP location block a variable and use it in multiple
locations?