現在有個問題,就是我頁面獲取到的ip是127.0.0.1,但實際是192.168.80.xx,我的apache2的配置是
<IfModule mod_proxy.c>
ProxyPass /d2 http://127.0.0.1:50305/d2 nocanon
ProxyPassReverse /d2 http://127.0.0.1:50305/d2
</IfModule>
?我的頁面訪問是http://192.168.80.53/d2/backupd?,然后獲取到的ip 是127.0.0.1
如果我訪問頁面時加上埠http://192.168.80.53:50305/d2/backupd,獲取到的ip是192.168.80.53,
現在需要的是當我訪問http://192.168.80.53/d2/backupd時,獲取到的ip是192.168.80.53
請問怎么可以做到???
uj5u.com熱心網友回復:
ProxyPass 和 ProxyPassReverse 后面地址使用 192.168.80.53 即可轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/68840.html
標籤:Apache
