在OpenBSD 5.4、64位上使用nginx / 1.4.1:
使用目录列表时,如何设置nginx显示完整文件名(或至少显示文件名中的更多文件,然后显示默认文件)?
谷歌搜索只给了我这个:
http://forum.nginx.org/read.php?2,124400,167420#msg-167420
January 18, 2011 08:36PM
fagtron
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 !!!
问题:没有其他方法可以重新编译它了吗?
这是一本手册,介绍如何修改nginx源:tecklyfe.com/nginx-display-full-filename-directory-listing
—
rubo77 '19