hide/strip set cookies on static files and howto use alias

Francis Daly francis at daoine.org
Sun Apr 10 08:04:46 UTC 2016

On Sat, Apr 09, 2016 at 09:16:33AM -0400, JoakimR wrote:

Hi there,

> Another Q

For ease of searching in future, it probably will be simpler if new
unrelated questions start new message threads, with a Subject: line that
is relevant.

> Hi do have this in my domain.conf
>     location /admin {
>     	index index.php;
>     	access_log off;
>     	log_not_found					off;
>     	expires				0;
> 		}
> but yet, everything is logged?  do you have some kind of answer to this?

In nginx, a http request is logged in the location where it ends.

So your "everything" request is not finally handled in the location that
you show. (Or you've found a bug in nginx.)

If it is not clear to you which location{} is used for the request,
and what subrequest is made, and which location{} is used for that
subrequest; then possibly enabling the debug log on a test server will
help you track it.

Note - the debug log contains lots of information, most of which probably
counts as "noise" for the one specific thing you are trying to find.

Francis Daly        francis at daoine.org

More information about the nginx mailing list