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