nginx: Long filenames in directory listing
According to ngx_http_autoindex_module documentation, configuration of column width for autoindexed pages is not available. Compiling from the source would be the only way to make this change.
One alternative could be to use a scripting language (e.g. php
, ruby
, or python
) to perform the directory listing for you.
Benefits include:
- fully customizable via CSS, JavaScript, etc
- fine control over file listing
Caveats:
- requires a CGI e.g.
php-fpm
orpassenger
- requires more configuration
You can try fancyindex module with its fancyindex_name_length parameter to configure the filename length.