feat: move custom-html docroot to /var/www/html
Some checks failed
cc-ci/testme cc-ci: failure

This commit is contained in:
autonomic-bot
2026-05-31 19:50:41 +00:00
parent 8a02606643
commit fc2c80cfac
2 changed files with 7 additions and 6 deletions

View File

@ -8,8 +8,9 @@ server {
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
root /var/www/html;
index index.html index.htm;
autoindex on;
{{ if env "REDIRECT_TO_URL" }}
rewrite ^{{ env "REDIRECT_FROM_PATH" }}(.*)$ {{ env "REDIRECT_TO_URL" }}$1 {{ env "REDIRECT_TYPE" }};
@ -24,14 +25,14 @@ server {
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
root /var/www/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
root /var/www/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80