diff --git a/nginx/sites-available/i.zzls.xyz.conf b/nginx/sites-available/i.zzls.xyz.conf index ba3a148..95ff7e4 100755 --- a/nginx/sites-available/i.zzls.xyz.conf +++ b/nginx/sites-available/i.zzls.xyz.conf @@ -13,12 +13,12 @@ server { client_max_body_size 51M; proxy_pass http://127.0.0.1:40007/; include configs/proxyheaders.conf; - error_page 404 = @fallback; + proxy_intercept_errors on; + error_page 404 = /error; } - location @fallback { - root /var/www/404; - index index.html; + location ^/error* { + root /var/www/html; } #location /upload { @@ -46,4 +46,4 @@ server { return 404; # managed by Certbot - } \ No newline at end of file + } diff --git a/nginx/sites-available/zzls.xyz.conf b/nginx/sites-available/zzls.xyz.conf index a80fde7..c707f4a 100755 --- a/nginx/sites-available/zzls.xyz.conf +++ b/nginx/sites-available/zzls.xyz.conf @@ -1,6 +1,6 @@ server { - root /var/www/html; + root /var/www/website; index index.html index.htm index.nginx-debian.html; server_name zzls.xyz www.zzls.xyz;