Welcome! Log In Create A New Profile


Location container read order

December 02, 2009 09:12PM
I have one "location" container that servers static content:

location ~ \.(html|htm|xml|css|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$

and another "location" container that uses a backend apache server to serve PHP file requests:

location / {

Are the "location" containers read in the order that they appear in the configuration file? In the example above would the static location be read before the proxy_pass container, insuring that the static content "html" files would be served before a "php" file from the back proxy server?

I am trying to insure the proxy server does not serve php files that may already exist as html files generated by WP Super Cache in Wordpress.

All the best,

Subject Author Posted

Location container read order

nerdgrind December 02, 2009 09:12PM

Re: Location container read order

Rob Schultz December 02, 2009 09:30PM

Re: Location container read order

nerdgrind December 02, 2009 11:02PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready