Fancy indexes module for the Nginx web server
https://github.com/aperezdc/ngx-fancyindex
Installation and configuration
Installation
-
yuminstallhttps://github.com/aperezdc/ngx-fancyindex#centos-rhel-fedora-linux
-
source codeinstallhttps://github.com/aperezdc/ngx-fancyindex#building
wget https://nginx.org/download/nginx-1.22.1.tar.gz wget https://github.com/aperezdc/ngx-fancyindex/releases/download/v0.5.2/ngx-fancyindex-0.5.2.tar.xz tar -xf ngx-fancyindex-0.5.2.tar.xz && mv ngx-fancyindex-0.5.2 ngx-fancyindex && cd ngx-fancyindex tar -xvzf nginx-1.22.1.tar.gz && cd nginx-1.22.1 ./configure --add-module=ngx-fancyindex ... make -j 32 && make install
Configuration
[root@bo ~]# nginx -V
nginx version: nginx/1.22.0
...
--add-module=ngx-fancyindex
More usage of directives:
https://github.com/aperezdc/ngx-fancyindex#directives
server {
server_name repo.bo.ms;
listen 80;
location / {
root /data/repo/;
autoindex on;
fancyindex on;
fancyindex_exact_size off;
create_full_put_path on;
client_max_body_size 0M;
}
}
