Commit 54bf860f authored by omega8cc's avatar omega8cc

Nginx: Stop the POST flood to /autodiscover/autodiscover.xml generated by MS Office/Outlook

parent 9ada38d8
......@@ -900,6 +900,10 @@ location ~* ^/sites/.*/files/ {
### Make feeds compatible with boost caching and set correct mime type.
###
location ~* \.xml$ {
location ~* ^/autodiscover/autodiscover\.xml {
access_log off;
return 400;
}
if ( $request_method = POST ) {
return 405;
}
......
......@@ -755,6 +755,10 @@ location ^~ /<?php print $subdir; ?> {
### Make feeds compatible with boost caching and set correct mime type.
###
location ~* ^/<?php print $subdir; ?>/(.*\.xml)$ {
location ~* ^/<?php print $subdir; ?>/autodiscover/autodiscover\.xml {
access_log off;
return 400;
}
if ( $request_method = POST ) {
return 405;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment