My personnal theme of Nginx-FancyIndex.
- nginx
- fancyindex module (nginx-extras)
git clone https://github.com/artyuum/Nginx-FancyIndex-Theme.git /etc/nginx/fancyindex_theme
.- Edit your virtual host as follow :
location / {
fancyindex on;
fancyindex_header "/fancyindex_theme/header.html";
fancyindex_ignore "/fancyindex_theme";
}
location /fancyindex_theme {
alias /etc/nginx/fancyindex_theme;
try_files $uri $uri/ =404;
}
- Done!