Commit 87e2a3b6 authored by memtkmcc's avatar memtkmcc

Issue #3149961: Nginx - Do not log /civicrm* requests, but micro-cache them and protect from bots

parent 662c38b8
......@@ -469,26 +469,26 @@ location ^~ /admin {
}
###
### Avoid caching /civicrm* and protect it from bots.
### Do not log /civicrm* requests, but protect from bots.
###
location ^~ /civicrm {
if ( $is_bot ) {
return 403;
}
access_log off;
set $nocache_details "Skip";
### set $nocache_details "Skip";
try_files $uri @drupal;
}
###
### Avoid caching /civicrm* and protect it from bots on a multi-lingual site
### Do not log /civicrm* requests, but protect from bots on a multi-lingual site
###
location ~* ^/\w\w/civicrm {
if ( $is_bot ) {
return 403;
}
access_log off;
set $nocache_details "Skip";
### set $nocache_details "Skip";
try_files $uri @drupal;
}
......
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