Welcome! Log In Create A New Profile

Advanced

Re: Config file order

Bai Shen
February 09, 2012 01:08PM
That's what I thought, but I wasn't sure. I'm trying to get the remote IP
to show up in my web server logs and wanted to make sure nginx was sending
it.

On Thu, Feb 9, 2012 at 12:59 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Thu, Feb 09, 2012 at 12:49:16PM -0500, Bai Shen wrote:
>
> > I know the server order in the config file makes a difference. Does the
> > order of the statements inside the location tags make a difference?
> >
> > Do I need to set the headers before doing a proxy_pass or does it matter?
>
> In most cases order doesn't matter. There are some special cases
> though, most notably regexp locations and rewrite module
> directives, where order matters. In such special cases order of
> processing is usually explicitly documented.
>
> As for proxy_pass and proxy_set_header - order doesn't matter.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Config file order

Bai Shen February 09, 2012 12:50PM

Re: Config file order

Maxim Dounin February 09, 2012 01:00PM

Re: Config file order

Bai Shen February 09, 2012 01:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
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