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@mdounin.ru>
À : nginx@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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx