Просмотр исходного кода

Temporary addition of error code

Alexandros Ioannides 6 лет назад
Родитель
Сommit
6087fa0f83
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/deb/nginx/nginx.conf

+ 2 - 1
src/deb/nginx/nginx.conf

@@ -87,6 +87,7 @@ http {
 
     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;
 
     # Vhost
@@ -96,7 +97,7 @@ http {
         root            /usr/local/hestia/web;
 
         # Fix error "The plain HTTP request was sent to HTTPS port"
-        error_page      497 https://$host:$server_port$request_uri;
+        error_page 497 https://$host:$server_port$request_uri;
 
         ssl_certificate      /usr/local/hestia/ssl/certificate.crt;
         ssl_certificate_key  /usr/local/hestia/ssl/certificate.key;