浏览代码

Merge pull request #360 from K2rool/patch-1

Make autodiscover location case insensitive
André Peters 8 年之前
父节点
当前提交
953cadd83c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      data/conf/nginx/site.conf

+ 2 - 2
data/conf/nginx/site.conf

@@ -64,7 +64,7 @@ server {
     proxy_redirect off;
   }
 
-  location ~ /(?:a|A)utodiscover/(?:a|A)utodiscover.xml {
+  location ~* ^/Autodiscover/Autodiscover.xml {
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     fastcgi_pass phpfpm:9000;
     include /etc/nginx/fastcgi_params;
@@ -209,7 +209,7 @@ server {
     proxy_redirect off;
   }
 
-  location ~ /(?:a|A)utodiscover/(?:a|A)utodiscover.xml {
+  location ~* ^/Autodiscover/Autodiscover.xml {
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     fastcgi_pass phpfpm:9000;
     include /etc/nginx/fastcgi_params;