diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-27 05:10:02 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-27 05:10:02 +0000 |
commit | 96473d3dae7afa612ba6d44e933d3405cb80dac7 (patch) | |
tree | f10dee1e00fc6be7fb7fb2edc3005b39077aaae6 | |
parent | 082b421debcf93db5354a46e2d9ef3b41d2f8497 (diff) |
If nginx config `root /srv/http`, then files in /srv/http/mirrors can be accessed via https://flylightning.xyz/mirrors/archlinux/fly/os/any/fly-any.files, not ideal
-rw-r--r-- | etc/nginx/nginx.conf | 2 | ||||
-rw-r--r-- | srv/http/www/index.html (renamed from srv/http/index.html) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 6b7b8d2d..3d4af871 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -49,7 +49,7 @@ http { #access_log logs/host.access.log main; location / { - root /srv/http; + root /srv/http/www; index index.html; } diff --git a/srv/http/index.html b/srv/http/www/index.html index bbcf2b1a..bbcf2b1a 100644 --- a/srv/http/index.html +++ b/srv/http/www/index.html |