Need To Run Multiple Location Blocks

Edho Arief edho at myconan.net
Wed Jul 18 01:44:44 UTC 2012


On Jul 18, 2012 6:12 AM, "justin" <nginx-forum at nginx.us> wrote:
>
> 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?
>

AFAIK, that's the best way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120718/7b1c3925/attachment.html>


More information about the nginx mailing list