Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
apache代理java代码中的url后是否可以获取原始请求uri?
看看你的请求的 HTTP 标头 [1] 像 X-Forwarded-For 这样的标头可能包含客户端的 IP 地址,X-Forwarded-Host(客户端在 Host HTTP 请求标头中请求的原始主机), X-Forwarded-Server(代理服务器的主机名)。有关更详细的说明,请参阅 mod_proxy 文档 [1]。
[1] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html