Skip to content

Commit f164fb3

Browse files
PleskanKristan Kenney
authored andcommitted
Fix infinite redirect loop (hestiacp#302)
1 parent 5da7144 commit f164fb3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

install/deb/templates/mail/nginx/web_system.stpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ server {
6161
error_page 500 502 503 504 505 /error/50x.html;
6262

6363
location /error/ {
64-
root /var/www/document_errors/;
65-
try_files $uri $uri/;
64+
alias /var/www/document_errors/;
6665
}
6766

6867
include %home%/%user%/conf/mail/%root_domain%/%web_system%.conf_*;

install/deb/templates/mail/nginx/web_system.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ server {
6161
error_page 500 502 503 504 505 /error/50x.html;
6262

6363
location /error/ {
64-
root /var/www/document_errors/;
65-
try_files $uri $uri/;
64+
alias /var/www/document_errors/;
6665
}
6766

6867
include %home%/%user%/conf/mail/%root_domain%/%web_system%.conf_*;

0 commit comments

Comments
 (0)