Skip to content

Commit 11e5765

Browse files
committed
hestia-nginx move error_page statements to server block
1 parent 47c4157 commit 11e5765

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/deb/nginx/nginx.conf

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

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;
92-
9388
# Vhost
9489
server {
9590
listen 8083 ssl;
@@ -98,6 +93,10 @@ http {
9893

9994
# Fix error "The plain HTTP request was sent to HTTPS port"
10095
error_page 497 https://$host:$server_port$request_uri;
96+
error_page 403 /error/404.html;
97+
error_page 404 /error/404.html;
98+
error_page 410 /error/410.html;
99+
error_page 500 501 502 503 504 505 /error/50x.html;
101100

102101
ssl_certificate /usr/local/hestia/ssl/certificate.crt;
103102
ssl_certificate_key /usr/local/hestia/ssl/certificate.key;

0 commit comments

Comments
 (0)