autoindex directive in 'if' section

Max nginxyz at
Thu Feb 2 00:08:12 UTC 2012

02 февраля 2012, 01:46 от "B.R." <reallfqq-nginx at>:

> Since the location is based on the new /post_redirect/ folder, the indexing page shows:
> Index of /post_redirect /*******
> It is unaesthetic to me, since I would like the original URI there. :o\
> Any trick on that?

Set whatever log_format you want inside the /post_redirect/ location

You can also turn log_subrequest off inside the if block
to prevent the rewrite from showing up in the logs.


More information about the nginx mailing list