SOLVED Found fastcgi_ignore_headers Cache-Control Set-Cookie;by jost - How to...
Im dealing with some forum software that always sends a no-cache header and a cookie, even for guests. This always causes my NGINX fastcgi_cache to be bypassed :( Varnish is typically used in front of NGINX on these forums to act as a micro-cache. It accomplishes this with a special rule to cache things for 1 day, but if there is a no-cache header or Cookie being set, it will STILL CACHEby jost - How to...
Got it working! Was a location block problem. I deleted the location / block and move this part if ($crawler = 'yes') { access_log /var/log/bots.log; access_log on; to my fastcgi processing blockby jost - How to...
Ive played around with this: if ($http_user_agent ~* (bot) ) { set $crawler 'yes'; } location / { if ($crawler = 'yes') { access_log /var/log/bots.log; access_log on; } } Just doesnt work. :( Nothing appears in the log fileby jost - How to...
Cant figure out how to do this. I want my access log to only log entries that come from an agent containing the string "wordone wordtwo wordthree" etc Anyway to do this?by jost - How to...
![]() |
![]() |
![]() |
![]() |
|