Full Filename Directory Listing

fagtron nginx-forum at nginx.us
Wed Jan 19 04:36:21 MSK 2011


I looked all over the net and wasn't able to find this answer anyway, so
I looked into the nginx source files and it's very easy.


Simply modify the file located at
[b]src/http/modules/ngx_http_autoindex_module.c[/b] and then compile.

Change these lines:

[b]#define NGX_HTTP_AUTOINDEX_PREALLOCATE  50

#define NGX_HTTP_AUTOINDEX_NAME_LEN     50[/b]

to whatever you want, such as:

[b]#define NGX_HTTP_AUTOINDEX_PREALLOCATE  100

#define NGX_HTTP_AUTOINDEX_NAME_LEN     100[/b]

And then compile and restart nginx. That's it !!!

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,124400,167420#msg-167420




More information about the nginx mailing list