Welcome! Log In Create A New Profile

Advanced

another "nested locations" question

September 25, 2012 10:08PM
I am interested in using a nesting of some sort so that I don't have to
duplicate all the proxy- and other directives for one "special case".

Basically, I'd like a very small subset of my webapp to also write to a
separate access-log. When a user hits that particular page, I would
like to log it, AND also perform all the directives for the rest of the
site that are already configured.

Something like

location /site {
location /site/search {
access_log /var/log/nginx/search_access.log;
}
proxy_pass ...
proxy_redirect off;
proxy_set_header ...
}

So accessing /site/search should write an entry in the "special log
file", and then do all the "normal stuff" that location /site has itemized.

Is this possible?

Thanks again,
AJ

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

another "nested locations" question

aweber September 25, 2012 10:08PM

Re: another "nested locations" question

Maxim Dounin September 26, 2012 11:46AM

monit rewrite

aweber September 26, 2012 03:02PM

Re: monit rewrite

António P. P. Almeida September 26, 2012 05:58PM

Re: monit rewrite

António P. P. Almeida September 26, 2012 06:04PM

Re: monit rewrite

Igor Sysoev September 27, 2012 03:40AM

Re: monit rewrite

António P. P. Almeida September 27, 2012 03:54AM

Re: monit rewrite

Igor Sysoev September 27, 2012 03:56AM

Re: monit rewrite

Mark Alan September 27, 2012 06:18AM

Re: monit rewrite

Igor Sysoev September 27, 2012 06:30AM

Re: monit rewrite

Mark Alan September 27, 2012 07:26AM

Re: another "nested locations" question

aweber September 27, 2012 09:08AM

Re: another "nested locations" question

Maxim Dounin September 27, 2012 09:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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