簡體   English   中英

配置Apache Web服務器以使用代理服務器

[英]Configure Apache Web server to use a proxy server

我想配置Apache Web服務器以使用代理服務器,以便所有出站請求都通過此代理服務器。 你能幫幫我怎么做嗎? 我嘗試使用Proxifier,但它對我幫助不大。

如果您需要代理出站請求,可以使用mod_proxy http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote中的 ProxyRemote

ProxyRemote * http://ip.of.proxY.host:port

如果您使用Apache,更簡單的方法是定義全局變量http_proxy。 在RedHat上編輯/ etc / sysconfig / httpd並將這兩行調整到您的環境:

export http_proxy="http://proxy:8080/" 
export https_proxy="http://proxy:8080/"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM