Skip to content

Commit cd39203

Browse files
ioannidesalexLupul
authored andcommitted
Change error pages
1 parent f9b77f0 commit cd39203

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/deb/nginx/nginx.conf

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

88-
error_page 403 /error/404/index.html;
89-
error_page 404 /error/404/index.html;
90-
error_page 410 /error/404/index.html
91-
error_page 500 501 502 503 504 505 /error/index.html;
88+
error_page 403 /error/404.html;
89+
error_page 404 /error/404.html;
90+
error_page 410 /error/410.html;
91+
error_page 500 501 502 503 504 505 /error/50x.html;
9292

9393
# Vhost
9494
server {
@@ -104,12 +104,12 @@ http {
104104

105105
location / {
106106
expires off;
107-
index index.php;
107+
index index.php;
108108
}
109109

110110
location /error/ {
111111
expires off;
112-
index index.html;
112+
internal
113113
}
114114

115115
location /rrd/ {
@@ -118,7 +118,7 @@ http {
118118
}
119119

120120
location /backup/ {
121-
root /;
121+
root /;
122122
internal;
123123
}
124124

@@ -127,7 +127,7 @@ http {
127127
fastcgi_param SCRIPT_FILENAME /usr/local/hestia/web/$fastcgi_script_name;
128128
fastcgi_param QUERY_STRING $query_string;
129129
fastcgi_pass unix:/var/run/hestia-php.sock;
130-
fastcgi_intercept_errors on;
130+
fastcgi_intercept_errors on;
131131
break;
132132
}
133133
}

0 commit comments

Comments
 (0)