修改前:
location /aabbcc/ {
proxy_pass http://localhost:8080;
}
修改后:
location /aabbcc/ {
proxy_pass http://localhost:8080;
proxy_set_header x-forwarded-for $remote_addr;
}
主要添加:proxy_set_header x-forwarded-for $remote_addr; 配置