1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-12 10:45:14 +02:00

Fix dav url detection for apple

This commit is contained in:
andryyy 2017-06-14 23:10:50 +02:00
parent 19325ffb2a
commit e99fa9433e

View File

@ -28,7 +28,7 @@ server {
} }
location ^~ /.well-known/acme-challenge/ { location ^~ /.well-known/acme-challenge/ {
allow all; allow all;
default_type "text/plain"; default_type "text/plain";
} }
@ -37,9 +37,8 @@ server {
real_ip_header X-Forwarded-For; real_ip_header X-Forwarded-For;
real_ip_recursive on; real_ip_recursive on;
location = /principals/ { location ^~ /principals {
rewrite ^ $client_req_scheme://$http_host/SOGo/dav; return 301 /SOGo/dav;
allow all;
} }
location ~ \.php$ { location ~ \.php$ {
@ -173,7 +172,7 @@ server {
} }
location ^~ /.well-known/acme-challenge/ { location ^~ /.well-known/acme-challenge/ {
allow all; allow all;
default_type "text/plain"; default_type "text/plain";
} }
@ -182,9 +181,8 @@ server {
real_ip_header X-Forwarded-For; real_ip_header X-Forwarded-For;
real_ip_recursive on; real_ip_recursive on;
location = /principals/ { location ^~ /principals {
rewrite ^ $client_req_scheme://$http_host/SOGo/dav; return 301 /SOGo/dav;
allow all;
} }
location ~ \.php$ { location ~ \.php$ {