January 18, 2011 08:36PM
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 !!!
Subject Author Posted

Full Filename Directory Listing

mindfrost82 August 27, 2010 02:37PM

Re: Full Filename Directory Listing

fagtron January 18, 2011 08:36PM

Re: Full Filename Directory Listing

tungstone August 18, 2016 02:20PM

Re: Full Filename Directory Listing

liuyinhl October 27, 2019 10:05PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready