how to separate robot access log and human access log

2015-04-27 Thread meteor8488
Hi all, I'm trying to separate the robot access log and human access log, so I'm using below configuration: http { map $http_user_agent $ifbot { default 0; "~*rogerbot"3; "~*ChinasoSpider" 3; "~*Yahoo" 1; "~*Bot" 1

Re: Static files bad loading time

2015-04-27 Thread grigory
So, Francis... Do you have any idea on my problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258406#msg-258406 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[yet another] proxy question - rewrite URLs

2015-04-27 Thread DigitalHermit
I'm brand new to nginx so apologies in advance if this is the incorrect place to ask but I've been struggling with this for a week without much headway. I'm trying to reverse proxy two hosts behind nginx. The twist is that one of the hosts provides resources that come from another host that's not

Nginx does not delete old cached files

2015-04-27 Thread atrus
Hi, I have nginx serve as image cached, here is the main config : proxy_cache_path /etc/nginx/cache-media levels=1:2 keys_zone=media:1000m inactive=2y max_size=100g; proxy_temp_path /etc/nginx/cache-media/tmp; /dev/sdc1 is an intel SSD with ext4 mounted (-o noatime, nodiratime). It looks like t