#77 site start
upstream appserver {
}
server {
listen 80;
}
location / {
proxy_cache cache_one;
proxy_temp_path /data/nginx/tmp;
#proxy_cache_key "$request_uri$request_body";
#proxy_cache_methods GET POST;
proxy_cache_valid 200 304 1m;
}
}
# 77 site end
#77 site start 81
server {
listen 81;
index index.html index.htm index.php;
location ~ .*.php$
{
include fcgi.conf;
fastcgi_index index.php;
}
location =/ {
if ($http_user_agent ~ "(iPhone)|(Opera\sMini)|(MIDP-[0-9])|(MIDP[0-9])|(SymbianOS)|(Symbian\sOS)|(Windows\sCE)|(BlackBerry)|(^SonyEricsson)|(^Nokia)|(^NOKIA)|(UP\.Link)|(^SAMSUNG)|(^MOT-)|(^DoCoMo)|(UP\.Browser)|(^Mitsu)|(UCWEB)|(MAUI)|(^Palm)|(^Blazer)|(^BIRD\.E868)"){
break;
}
}
log_format 77_log
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/77.log 77_log;
}
# 77 site end
--
Best regards,
Hunk Guo
--