Bugfixes at nginx config create.

This commit is contained in:
2021-09-16 18:50:52 +00:00
parent 1cd59dcbe7
commit 5f5e2e3603

View File

@@ -50,16 +50,6 @@ echo
echo "return 301 $REDIRECT_HTTPS;"
else
if [[ $ERROR_PAGE != "" && $HTTP_PORT != "" ]]; then
echo "error_page 404 /$ERROR_PAGE;
location = /$ERROR_PAGE {
root html;
allow all;
index 404.html;
rewrite ^ "'$scheme'" http://$ERROR_PAGE"'$request_uri'" permanent;
}"
fi
fi
echo "location / {"
if [[ $HTTP_PORT != "" ]]; then
@@ -75,8 +65,17 @@ location = /$ERROR_PAGE {
proxy_set_header Connection "'$http_connection'";
proxy_cookie_path / /;
access_log off;
}
}"
}"
if [[ $ERROR_PAGE != "" && $HTTP_PORT != "" ]]; then
echo "error_page 404 /$ERROR_PAGE;
location = /$ERROR_PAGE {
root html;
allow all;
index 404.html;
rewrite ^ "'$scheme'" http://$ERROR_PAGE"'$request_uri'" permanent;
}"
fi
echo "}"
fi
if [[ $HTTPS_PORT != "" ]]; then