summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2021-08-13 20:22:24 +0000
committerroot@culturestrings <root@culturestrings>2021-08-13 20:22:24 +0000
commit925bc2b31bc05c6fca7d0d5c7bc7390c8e768c21 (patch)
tree4620c4434f42df811435d3335b16c128e443a2bb
parenteab7719c0c269785c27348b6dd29252f8b880fd5 (diff)
downloadculturestrings-925bc2b31bc05c6fca7d0d5c7bc7390c8e768c21.tar.bz2
culturestrings-925bc2b31bc05c6fca7d0d5c7bc7390c8e768c21.tar.xz
nginx: abandom fancyindex in favor of the built-in autoindex functionality.
-rw-r--r--public/fs/etc/nginx/nginx.conf.in2
-rwxr-xr-xpublic/fs/etc/nginx/vhosts.d/nginx-primary-subdomain-cfg.sh2
-rwxr-xr-xpublic/fs/etc/nginx/vhosts.d/nginx-primary-zone-cfg.sh2
-rw-r--r--public/fs/etc/nginx/vhosts.d/nginx.index.conf.in2
4 files changed, 3 insertions, 5 deletions
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;
}