Need To Run Multiple Location Blocks

justin nginx-forum at
Tue Jul 17 23:12:05 UTC 2012

So I pulled the PHP location block out, and put it in its own file
called php.conf. Then I simply did:

include /etc/nginx/php.conf

In each location block that needs to execute PHP. This seems to have
worked quite nicely. However, is there a better way of doing this?


Posted at Nginx Forum:,228624,228659#msg-228659

More information about the nginx mailing list