<font color="#333399"><font>Hello,<br><br>I would like to use the following in my conf file:<br>location a/ {<br> if ($host ~* "") {<br> root "";<br> autoindex on;<br> }<br>}<br><br>But that doesn't work: 'nginx: [emerg] "autoindex" directive is not allowed here'<br>
<br>What should I do?<br><br>Thanks,</font></font><br clear="all"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>