server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
#limit_conn conn_zone 1;
#limit_req zone=req_zone;
#proxy_cookie_path /JavaPrj_3 /;
#proxy_set_header Host $host;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://172.16.50.66:8080;
#proxy_pass http://myservers;
index index.html index.htm;
}
location ~ .*\.(css)$ {
alias /usr/share/nginx/html/images/;
#expires 1d;
autoindex on;
}
location ~ .*\.(js)$ {
alias /usr/share/nginx/html/js/;
#expires 1d;
}
location ~ .*\.(jpg|gif|png)$ {
root /usr/share/nginx/html/images/;
#expires 1d;
}
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}