Browse Source

Update nginx.conf

Alexandros Ioannides 6 years ago
parent
commit
442123d046
1 changed files with 3 additions and 8 deletions
  1. 3 8
      src/deb/nginx/nginx.conf

+ 3 - 8
src/deb/nginx/nginx.conf

@@ -85,10 +85,9 @@ http {
     add_header          X-Frame-Options SAMEORIGIN;
     add_header          X-Content-Type-Options nosniff;
 
-    # Error pages
-    error_page          403          /error/403.html;
-    error_page          404          /error/404.html;
-    error_page          502 503 504  /error/50x.html;
+    error_page 403 /error/404/index.html;
+    error_page 404 /error/404/index.html;
+    error_page 500 501 502 503 504 505 /error/index.html;
 
     # Vhost
     server {
@@ -102,10 +101,6 @@ http {
         ssl_certificate      /usr/local/hestia/ssl/certificate.crt;
         ssl_certificate_key  /usr/local/hestia/ssl/certificate.key;
 
-        error_page 403 /error/404/index.html;
-        error_page 404 /error/404/index.html;
-        error_page 500 501 502 503 504 505 /error/index.html;
-
         location / {
             expires off;
             index   index.php;