Skip to content

Commit 442123d

Browse files
Update nginx.conf
1 parent ced6625 commit 442123d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/deb/nginx/nginx.conf

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ http {
8585
add_header X-Frame-Options SAMEORIGIN;
8686
add_header X-Content-Type-Options nosniff;
8787

88-
# Error pages
89-
error_page 403 /error/403.html;
90-
error_page 404 /error/404.html;
91-
error_page 502 503 504 /error/50x.html;
88+
error_page 403 /error/404/index.html;
89+
error_page 404 /error/404/index.html;
90+
error_page 500 501 502 503 504 505 /error/index.html;
9291

9392
# Vhost
9493
server {
@@ -102,10 +101,6 @@ http {
102101
ssl_certificate /usr/local/hestia/ssl/certificate.crt;
103102
ssl_certificate_key /usr/local/hestia/ssl/certificate.key;
104103

105-
error_page 403 /error/404/index.html;
106-
error_page 404 /error/404/index.html;
107-
error_page 500 501 502 503 504 505 /error/index.html;
108-
109104
location / {
110105
expires off;
111106
index index.php;

0 commit comments

Comments
 (0)