autoindex directive in 'if' section
Max
nginxyz at mail.ru
Thu Feb 2 00:08:12 UTC 2012
02 февраля 2012, 01:46 от "B.R." <reallfqq-nginx at yahoo.fr>:
> 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?
http://wiki.nginx.org/HttpLogModule
Set whatever log_format you want inside the /post_redirect/ location
block.
http://wiki.nginx.org/HttpCoreModule#log_subrequest
You can also turn log_subrequest off inside the if block
to prevent the rewrite from showing up in the logs.
Max
More information about the nginx
mailing list