0
我在Apache的这个代理设置Apache Proxy,使用哪个IP?
# Proxy specific settings
ProxyRequests Off
ProxyPreserveHost Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyPass /solrsearch http://localhost:8080/solr/collection1/select
ProxyPassReverse /solrsearch http://localhost:8080/solr/collection1/select
我的问题是:
当有人去http://mydomain.com/solrsearch
其中腹膜内将http://localhost:8080/solr/collection1/select
'看'?
它会看到访客的I.P。或者因为它是一个代理,它会看到apache的I.P? (127.0.0.1)
同样在这里。有没有解决方案如何通过代理访问tomcat时获取客户端IP?嗯,这里是解决方案:http://stackoverflow.com/questions/760283/apache-proxypass-how-to-preserve-original-ip-address – Inna