upstream wwwynssocietycom_pool {
server 127.0.0.1:52379 max_fails=3 fail_timeout=30s;
}
server {
listen 80;
server_name wwwynssocietycom.aykj.so ytshsy.com www.ytshsy.com;
root /www/wwwynssocietycom/webapps/ROOT;
index index.jsp index.html index.php ;
location / {
proxy_pass http://wwwynssocietycom_pool;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 300;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 6d;
}
access_log /var/log/nginx/wwwynssocietycom_access.log main;
}
server {
listen