Welcome! Log In Create A New Profile

Advanced

Re: Full Filename Directory Listing

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



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 52
Record Number of Users: 8 on December 15, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready