Help with autoindex on; missing slash for directories
Yazz Atlas
yazz.atlas at gmail.com
Wed Jul 1 10:09:11 MSD 2009
I'm working on upgrading some servers running nginx-0.6.34 to either
nginx-0.8.4 or nginx-0.7.61. The problem is I have another tool that
was crawling the nginx directory and following all the directories it
found. With the latest version of nginx the the directories aren't
given a slash so doing the automated crawl fails.
The older nginx-0.6.34 output the following: ( Added pre tag to
prevent auto formatting from happening.)
<pre>
<html>
<head><title>Index of /static/</title></head>
<body bgcolor="white">
<h1>Index of /static/</h1><hr><pre><a href="../">../</a>
<a href="site/">site/</a> 30-Jun-2009 21:49 -
</pre><hr></body>
</html>
</pre>
The newer nginx-0.8.4 and nginx-0.7.61 out puts the following:
<pre>
<html>
<head><title>Index of /static/</title></head>
<body bgcolor="white">
<h1>Index of /static/</h1><hr><pre><a href="../">../</a>
<a href="site">site</a> 30-Jun-2009 21:49 -
</pre><hr></body>
</html>
</pre>
Notice the missing slash after the word site. I was relying on having
the slash so I could navigate down directories with my crawler.
Any one have a solution to add the slash back?
Thanks!
-Yazz Atlas
More information about the nginx
mailing list