Browse Source

Update default.tpl

Alexandros Ioannides 6 years ago
parent
commit
3761cbd3a5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      install/deb/templates/mail/nginx/default.tpl

+ 4 - 4
install/deb/templates/mail/nginx/default.tpl

@@ -36,10 +36,6 @@ server {
         fastcgi_param SCRIPT_FILENAME $request_filename;
     }
 
-    location @fallback {
-        proxy_pass http://%ip%:%web_port%;
-    }
-
     error_page 403 /error/404.html;
     error_page 404 /error/404.html;
     error_page 500 502 503 504 505 /error/50x.html;
@@ -48,5 +44,9 @@ server {
         alias /var/www/document_errors/;
     }
 
+    location @fallback {
+        proxy_pass http://%ip%:%web_port%;
+    }
+
     include %home%/%user%/conf/mail/%root_domain%/%proxy_system%.conf_*;
 }