From 925bc2b31bc05c6fca7d0d5c7bc7390c8e768c21 Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Fri, 13 Aug 2021 20:22:24 +0000 Subject: nginx: abandom fancyindex in favor of the built-in autoindex functionality. --- public/fs/etc/nginx/nginx.conf.in | 2 -- public/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh | 2 +- public/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh | 2 +- public/fs/etc/nginx/vhosts.d/nginx.index.conf.in | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'public/fs') diff --git a/public/fs/etc/nginx/nginx.conf.in b/public/fs/etc/nginx/nginx.conf.in index d2165fa..af37f79 100644 --- a/public/fs/etc/nginx/nginx.conf.in +++ b/public/fs/etc/nginx/nginx.conf.in @@ -1,7 +1,5 @@ worker_processes 1; -load_module lib64/nginx/modules/ngx_http_fancyindex_module.so; - events { worker_connections 1024; use epoll; diff --git a/public/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh b/public/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh index 20a067f..37bcf81 100755 --- a/public/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh +++ b/public/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh @@ -31,7 +31,7 @@ for sitedir in $@; do cat << _EOF location /${sitedir} { root /srv/www/htdocs/\$host; - fancyindex on; + autoindex on; ssi on; } diff --git a/public/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh b/public/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh index d95a6ab..4942233 100755 --- a/public/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh +++ b/public/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh @@ -28,7 +28,7 @@ for sitedir in $@; do cat << _EOF location /${sitedir} { root /srv/www/htdocs/\$host; - fancyindex on; + autoindex on; ssi on; } diff --git a/public/fs/etc/nginx/vhosts.d/nginx.index.conf.in b/public/fs/etc/nginx/vhosts.d/nginx.index.conf.in index 8cbae91..8550195 100644 --- a/public/fs/etc/nginx/vhosts.d/nginx.index.conf.in +++ b/public/fs/etc/nginx/vhosts.d/nginx.index.conf.in @@ -10,7 +10,7 @@ server { location / { root /srv/www/htdocs/@sitezone@/@sitepref@; - fancyindex on; + autoindex on; ssi on; } -- cgit v1.2.3