Jump to content

手册:$wgHTTPProxy

From mediawiki.org
This page is a translated version of the page Manual:$wgHTTPProxy and the translation is 100% complete.
HTTP客戶端: $wgHTTPProxy
用于cURL请求的代理
引进版本:1.5.0​(r9860
移除版本:仍在使用
允许的值:(包含IP:Port的字符串)
默认值:'' (1.34+)
false (1.5-1.33)

细节

用于 cURL(或在 cURL 不可用时使用 PHP fopen_url)请求的代理,例如在侧边上传(从外部 URL 上传)中。 格式为:代理的 IP 地址、一个冒号以及端口号。

自2016年8月起,由于存在名为httpoxy的漏洞,MediaWiki将不再回退使用http_proxy环境变量。

参阅