server {
listen 80;
server_name baidu.com;
#charset koi8-r;
access_log logs/ssu8.cn.access.log main;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
root D:/soft/ssu8/webapps/ROOT;
expires 30d;
}
location ~* /nutzbook/user/.*.(php|php5|PHP|PHP5|py|PY|sh|SH)$ {
deny all;
}
location / {
proxy_pass http://localhost:8082;
proxy_set_header X-Real-IP $remote_addr;
}
}
这是我配置的,没起效果