server {
listen 80;
server_name test.admin.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location /cms {
proxy_pass http://111.111.111.111:8090/;
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_set_header X-Forwarded-Proto $scheme;
}
我想配置二级/cms nginx这样配置完 用户端正常访问 但是console端无法访问