Przeglądaj źródła

Change error pages

Alexandros Ioannides 6 lat temu
rodzic
commit
cd392030be
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      src/deb/nginx/nginx.conf

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

@@ -85,10 +85,10 @@ http {
     add_header          X-Frame-Options SAMEORIGIN;
     add_header          X-Content-Type-Options nosniff;
 
-    error_page 403 /error/404/index.html;
-    error_page 404 /error/404/index.html;
-    error_page 410 /error/404/index.html
-    error_page 500 501 502 503 504 505 /error/index.html;
+    error_page 403 /error/404.html;
+    error_page 404 /error/404.html;
+    error_page 410 /error/410.html;
+    error_page 500 501 502 503 504 505 /error/50x.html;
 
     # Vhost
     server {
@@ -104,12 +104,12 @@ http {
 
         location / {
             expires off;
-            index   index.php;
+            index index.php;
         }
 
         location /error/ {
             expires off;
-            index   index.html;
+            internal
         }
 
         location /rrd/ {
@@ -118,7 +118,7 @@ http {
         }
 
         location /backup/ {
-            root    /;
+            root /;
             internal;
         }
 
@@ -127,7 +127,7 @@ http {
             fastcgi_param   SCRIPT_FILENAME /usr/local/hestia/web/$fastcgi_script_name;
             fastcgi_param   QUERY_STRING    $query_string;
             fastcgi_pass    unix:/var/run/hestia-php.sock;
-            fastcgi_intercept_errors        on;
+            fastcgi_intercept_errors on;
             break;
         }
     }