atom feed12 messages in ru.sysoev.nginxRe: autoindex directive in 'if' section
FromSent OnAttachments
B.R.Jan 26, 2012 11:15 am 
Maxim DouninJan 26, 2012 11:20 am 
real...@yahoo.frJan 27, 2012 12:43 pm 
MaxJan 27, 2012 1:51 pm 
B.R.Jan 27, 2012 2:41 pm 
B.R.Jan 27, 2012 3:01 pm 
MaxJan 27, 2012 4:36 pm 
B.R.Jan 27, 2012 7:15 pm 
B.R.Feb 1, 2012 1:45 pm 
MaxFeb 1, 2012 4:07 pm 
MaxFeb 1, 2012 4:28 pm 
B.R.Feb 1, 2012 4:50 pm 
Subject:Re: autoindex directive in 'if' section
From:Maxim Dounin (mdou@mdounin.ru)
Date:Jan 26, 2012 11:20:44 am
List:ru.sysoev.nginx

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