aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-07 14:38:36 +0800
committercrupest <crupest@outlook.com>2024-11-07 14:52:44 +0800
commit7347b9537be84426788ef7924716d3fccce30a0a (patch)
treed6727271e448f66179d4ec31cfc3946fc36b14d8
parent13118f54b2f3800ee31ae4fb6384251832d4f2bb (diff)
downloadcrupest-7347b9537be84426788ef7924716d3fccce30a0a.tar.gz
crupest-7347b9537be84426788ef7924716d3fccce30a0a.tar.bz2
crupest-7347b9537be84426788ef7924716d3fccce30a0a.zip
fix(mail): try to fix subpath again.
-rw-r--r--template/nginx/root.conf.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/template/nginx/root.conf.template b/template/nginx/root.conf.template
index dfdd00a..7ac5a9f 100644
--- a/template/nginx/root.conf.template
+++ b/template/nginx/root.conf.template
@@ -57,7 +57,7 @@ server {
listen [::]:443 ssl http2;
server_name mail.${CRUPEST_DOMAIN};
- location /rcube {
+ location /rcube/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
@@ -65,10 +65,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
- proxy_pass http://roundcubemail:80/rcube;
+ proxy_pass http://roundcubemail:80/;
}
- location /rspam {
+ location /rspam/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;