[Nginx] Catch case-insensitive /sogo$ request and redirect to /SOGo
This commit is contained in:
parent
7b4ed3bf64
commit
0e6dfdd0fe
@ -166,10 +166,6 @@
|
|||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(?:S|s)ogo$ {
|
|
||||||
return 301 $client_req_scheme://$http_host/SOGo;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /SOGo {
|
location ^~ /SOGo {
|
||||||
include /etc/nginx/conf.d/sogo_proxy_auth.active;
|
include /etc/nginx/conf.d/sogo_proxy_auth.active;
|
||||||
include /etc/nginx/conf.d/sogo.active;
|
include /etc/nginx/conf.d/sogo.active;
|
||||||
@ -186,6 +182,10 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~* /sogo$ {
|
||||||
|
return 301 $client_req_scheme://$http_host/SOGo;
|
||||||
|
}
|
||||||
|
|
||||||
location /SOGo.woa/WebServerResources/ {
|
location /SOGo.woa/WebServerResources/ {
|
||||||
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user