autoindex directive in 'if' section
reallfqq-nginx at yahoo.fr
reallfqq-nginx at yahoo.fr
Fri Jan 27 20:43:45 UTC 2012
I know this Wiki page...
I guess return/rewrite are useless here: I only want to change the root and activate the directory listing when the user is on a specific directory of a specific domain.
Any more help ? :\
Thx,
B.R.
________________________________
De : Maxim Dounin <mdounin at mdounin.ru>
À : nginx at nginx.org
Envoyé le : Jeudi 26 janvier 2012 14h21
Objet : Re: autoindex directive in 'if' section
Hello!
On Thu, Jan 26, 2012 at 02:16:22PM -0500, B.R. wrote:
> Hello,
>
> I would like to use the following in my conf file:
> location a/ {
> if ($host ~* "") {
> root "";
> autoindex on;
> }
> }
>
> But that doesn't work: 'nginx: [emerg] "autoindex" directive is not allowed
> here'
>
> What should I do?
http://wiki.nginx.org/IfIsEvil
Maxim Dounin
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120127/10330f4d/attachment.html>
More information about the nginx
mailing list