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
commit5dac2f1855aa253c52aa46b456a0cb6d7619b665 (patch)
treed6727271e448f66179d4ec31cfc3946fc36b14d8
parent2bf118001902801d51b32c8c70e819949ce62a14 (diff)
downloadcrupest-5dac2f1855aa253c52aa46b456a0cb6d7619b665.tar.gz
crupest-5dac2f1855aa253c52aa46b456a0cb6d7619b665.tar.bz2
crupest-5dac2f1855aa253c52aa46b456a0cb6d7619b665.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;