diff --git a/mailu/overrides/location_fix.conf b/mailu/overrides/location_fix.conf index 42fb4f6..ee93dc9 100644 --- a/mailu/overrides/location_fix.conf +++ b/mailu/overrides/location_fix.conf @@ -1,9 +1,10 @@ +# Usuń spacje i uprość wyrażenia regularne location / { - rewrite ^()$ $1/ permanent; - rewrite ^/(.*) /$1 break; + rewrite ^$ / permanent; + rewrite ^/(.*)$ /$1 break; include /etc/nginx/proxy.conf; auth_request /internal/auth/user; - error_page 403 @sso_login; - proxy_pass http://\$webmail; + error_page 403 = @sso_login; + proxy_pass http://$webmail; } \ No newline at end of file