想访问nginx代理服务器下面的文件
conf配置如下
server {
listen 80;
server_name localhost;
access_log logs/admin_access.log main;
error_log logs/error_log.log crit;
location / {
index index.html index.htm index.jsp;
proxy_pass http://192.168.1.163:8080;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header Connection "";
}
location /upload/ {
index index.html index.htm;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header Connection "";
root D:/tomcat7/yflow;
}
}