Need To Run Multiple Location Blocks

justin nginx-forum at nginx.us
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?

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228624,228659#msg-228659



More information about the nginx mailing list