gpt4 book ai didi

squid - 503 鱿鱼服务不可用

转载 作者:行者123 更新时间:2023-12-01 17:07:05 27 4
gpt4 key购买 nike

我正在尝试在 Google 云引擎上设置鱿鱼,但每个网站都收到503 Service Unavailable

curl -x http://35.xx.xxx.xxx:62401   -I http://www.squid-cache.org/Support/
HTTP/1.1 503 Service Unavailable
Server: squid
Mime-Version: 1.0
Date: Fri, 01 Feb 2019 13:45:15 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 3670
X-Squid-Error: ERR_CONNECT_FAIL 101
Vary: Accept-Language
Content-Language: en
X-Cache: MISS from google_proxyv1
X-Cache-Lookup: MISS from google_proxyv1:62401
Connection: keep-alive

我将我的鱿鱼配置剥离到下面的最小值

acl CONNECT method CONNECT
http_access allow CONNECT
# And finally allow all access to this proxy
http_access allow all
# Squid port
http_port 0.0.0.0:62401
debug_options ALL,1 5,5
request_header_access User-Agent deny all
request_header_replace Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari
/537.36
tcp_outgoing_address 35.xx.xxx.xxx
cache_access_log /var/log/squid/access.log
httpd_suppress_version_string on
cache_store_log none
shutdown_lifetime 1 second
icp_port 0
htcp_port 0
icp_access deny all
htcp_access deny all
snmp_port 0
snmp_access deny all
memory_pools off
via off
forwarded_for delete
follow_x_forwarded_for deny all
pipeline_prefetch on
request_header_access From deny all
request_header_access Server deny all

squid 正在监听 ipv4,因为我只保留了一个 ipv4 地址

sudo netstat -antp | grep 鱿鱼

tcp        0      0 0.0.0.0:62401           0.0.0.0:*               LISTEN      16811/(squid-1)   

但是访问日志显示它是否仍在尝试连接到 ipv6 地址

1549028715.317      3 35.xx.xxx.xxx TCP_MISS/503 357 HEAD http://www.squid-cache.org/Support/ - HIER_DIRECT/2001:4800:7812:514:be76:4eff:fe04:5ca1

我已经在 Google 云引擎上打开 62401 tcp

最佳答案

尝试禁用 IPv6

dns_v4_first on

关于squid - 503 鱿鱼服务不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54480971/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com