Commit 50f3aecd authored by omega8cc's avatar omega8cc Committed by anarcat

Issue #1182582 - Nginx config fix - always send search requests to php-fpm...

Issue #1182582 - Nginx config fix - always send search requests to php-fpm early so searching for node.js will work.
parent 4100ae7a
...@@ -69,6 +69,18 @@ ...@@ -69,6 +69,18 @@
deny all; deny all;
} }
###
### send search to php-fpm early so searching for node.js will work
### deny bots on search uri without 403 response
###
location ~* ^/search {
if ( $http_user_agent ~* (?:crawl|goog|yahoo|spider|bot|tracker|click|parser) ) {
return 444;
}
access_log off;
try_files $uri @cache;
}
### ###
### advagg_css and advagg_js support ### advagg_css and advagg_js support
### ###
......
...@@ -55,6 +55,18 @@ ...@@ -55,6 +55,18 @@
deny all; deny all;
} }
###
### send search to php-fpm early so searching for node.js will work
### deny bots on search uri without 403 response
###
location ~* ^/search {
if ( $http_user_agent ~* (?:crawl|goog|yahoo|spider|bot|tracker|click|parser) ) {
return 444;
}
access_log off;
try_files $uri @cache;
}
### ###
### advagg_css and advagg_js support ### advagg_css and advagg_js support
### ###
......
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