我在本地运行Squid,我想通过运行在localhost:3000上的Ruby服务器通过Squid进行访问。
如果我尝试访问localhost:3000,则会收到以下消息:
The following error was encountered while trying to retrieve the URL:
http://localhost:3000/
Access Denied.
Access control configuration prevents your request from being allowed
at this time.如何配置Squid以允许从localhost访问localhost?我已经将此行从拒绝更新为允许:http_access allow to_localhost
发布于 2015-10-19 17:20:41
转到: SquidMan > Preferences > Template并注释以下行:
#Deny requests to certain unsafe ports
#http_access deny !Safe_ports
#Deny CONNECT to other than secure SSL ports
#http_access deny CONNECT !SSL_ports或者,您可以将此端口列入下列行下面的acl端口列表中的白名单。
如果这无济于事,请确保您在network > advanced > proxies中正确添加了绕过代理(localhost或127.0.0.1)。
在我的例子中,这个绕过代理每隔2-3分钟就会消失。(我不知道如何解决它)
发布于 2015-10-19 19:28:07
也许不是最吸引人的解决方案,但我通过设置一个Ngrok tunell $ ./ngrok http 3128解决了它
现在我可以通过identifier.ngrok.com访问Squid了
发布于 2018-02-27 18:37:30
必须为localhost或127.0.0.0/8添加例外,以便在没有代理的情况下进行专线连接。例如,在火狐中: Preferences ->高级->网络->设置->没有代理。
或者使用环境变量no_proxy。
export no_proxy=localhost,127.0.0.0/8我的系统范围设置在/etc/environment中
http_proxy=http://172.16.0.253:3128/
https_proxy=http://172.16.0.253:3128/
no_proxy=localhost,127.0.0.0/8https://stackoverflow.com/questions/33169382
复制相似问题