Welcome! Log In Create A New Profile

Advanced

Re: Need To Run Multiple Location Blocks

Anonymous User
July 17, 2012 07:12PM
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.
Subject Author Posted

Need To Run Multiple Location Blocks

Anonymous User July 16, 2012 11:42PM

Re: Need To Run Multiple Location Blocks

Edho Arief July 17, 2012 04:32AM

Re: Need To Run Multiple Location Blocks

Anonymous User July 17, 2012 06:31PM

Re: Need To Run Multiple Location Blocks

Anonymous User July 17, 2012 07:12PM

Re: Need To Run Multiple Location Blocks

Edho Arief July 17, 2012 09:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready