通过nginx代理后getRequestURL无法获取
引发此问题的根源,nginx配置文件中缺少如下配置:
proxy_set_header Host $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
proxy_passhttp://127.0.0.1:8068;
引发此问题的根源,nginx配置文件中缺少如下配置:
proxy_set_header Host $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
proxy_passhttp://127.0.0.1:8068;