Help with autoindex on; missing slash for directories

Yazz Atlas yazz.atlas at gmail.com
Wed Jul 1 20:48:29 MSD 2009


On 7/1/09 2:30 AM, Maxim Dounin wrote:
> Hello!
>
> On Tue, Jun 30, 2009 at 11:09:11PM -0700, Yazz Atlas wrote:
>
>> 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.
>
> [...]
>
>> 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?
>
> Which OS?  Which filesystem?

CentOS release 5.3 (Final) with ext3 filesystem, Linux example 
2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 
x86_64 GNU/Linux

> And could you please:
>
> 1. Test if this regression appeared in 0.7.40.

The problem still exists with 0.7.40. I did compiled 0.6.38 and it does 
not have the problem. However I would like to move to the either 0.7.x 
or 0.8.x.

> 2. Show ./configure output on your system.

[root at example nginx-0.7.40]# ./configure  --http-proxy-temp-path=/tmp 
--prefix=/opt/nginx --with-http_ssl_module 
--with-http_gzip_static_module 
--http-fastcgi-temp-path=/opt/nginx/fastcgi_temp 
--http-proxy-temp-path=/opt/nginx/proxy_temp 
--http-client-body-temp-path=/opt/nginx/client_body_temp --group=nobody 
--user=nobody --prefix=/opt/nginx --with-http_realip_module 
--with-http_secure_link_module --with-http_stub_status_module 
--with-http_xslt_module/nginx/checking for OSp --group=nobody 
--user=nobody --prefix=/opt/nginx --with-http_realip_module  + Linux 
2.6.18-128.1.10.el5 x86_64
checking for C compiler ... found
  + using GNU C compiler0704 (Red Hat 4.1.2-44)
  + gcc version: 4.1.2 20080704 (Red Hat 4.1.2-44)--prefix=/opt/nginx 
--with-http_ssl_module checking for gcc -pipe switch ... 
foundastcgi-temp-path=/opt/nginx/fastcgi_temp --http-proxychecking for 
gcc variadic macros ... foundchecking for C99 variadic macros ... 
foundginx --with-http_realip_module --with-http_secure_checking for 
unistd.h ... foundatus_module --with-http_xslt_module
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found.40/
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... foundgure  --http-proxy-temp-path=/tmp 
--prefix=/opt/nginx --wichecking for prctl(PR_SET_DUMPABLE) ... 
founddule --http-fastcgi-temp-path=/opt/nginx/fastcgchecking for 
sched_setaffinity() ... foundroxy_temp 
--http-client-body-temp-path=/opt/nginx/checking for poll() ... founddy 
--user=nobody --prefix=/opt/nginx --with-http_realip_module checking for 
/dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for PCRE library ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for libxslt ... found
checking for libexslt ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for strerror_r() ... found but is not working
checking for gnu style strerror_r() ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for sched_yield() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found

Configuration summary
   + using system PCRE library
   + using system OpenSSL library
   + md5: using OpenSSL library
   + sha1 library is not used
   + using system zlib library

   nginx path prefix: "/opt/nginx"
   nginx binary file: "/opt/nginx/sbin/nginx"
   nginx configuration prefix: "/opt/nginx/conf"
   nginx configuration file: "/opt/nginx/conf/nginx.conf"
   nginx pid file: "/opt/nginx/logs/nginx.pid"
   nginx error log file: "/opt/nginx/logs/error.log"
   nginx http access log file: "/opt/nginx/logs/access.log"
   nginx http client request body temporary files: 
"/opt/nginx/client_body_temp"
   nginx http proxy temporary files: "/opt/nginx/proxy_temp"
   nginx http fastcgi temporary files: "/opt/nginx/fastcgi_temp"


> Maxim Dounin
>






More information about the nginx mailing list