歡迎您光臨本站 註冊首頁

為什麼hosts 2條域名指向不同的IP 其中一條就不能正常呢?

hosts表

1.1.1.1   a.cn

2.2.2.2   b.cn

當a.cn能訪問的時候  b.cn 就不能訪問了 為什麼呢?
------------------------------------------------------------
錯誤提示如下:
發生了下列的錯誤:

Unable to forward this request at this time.
目前無法將您的請求進行轉送操作
This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

The cache administrator does not allow this cache to make direct connections to origin servers, and
All configured parent caches are currently unreachable.

您的請求無法被轉送到原始網路伺服器或其他的上層緩存伺服器,發生這個問題最可能的原因是:

緩存伺服器管理員不允許本伺服器與原始網路伺服器直接連結,而
所有本伺服器指定的上層緩存伺服器都暫時無法連結。
----------------------------------------------------------------

squid配置如下----------------------------------
http_port 80 vhost vport=80
acl OverConnLimit maxconn 10
http_access deny OverConnLimit
cache_swap_low 30
cache_swap_high 35
maximum_object_size 4096 KB
maximum_object_size_in_memory 4096 KB
cache_dir ufs d:\squid\var\cache 40960 16 256
cache_mem 2048 MB
cache_store_log none
cache_access_log d:\squid\var\logs\access.log
cache_log d:\squid\var\logs\cache.log
error_directory C:\squid\share\errors\Simplify_Chinese
hosts_file c:\WINDOWS\system32\drivers\etc\hosts
emulate_httpd_log on
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
acl QUERY urlpath_regex cgi-bin .html .htm .shtml .shtm .swf
cache deny QUERY

refresh_pattern ^ftp:                1440        20%        10080
refresh_pattern ^gopher:        1440        0%        1440

refresh_pattern -i  cnc.eydns.com 5  50%  5
refresh_pattern -i  www.eydns.com 5  50%  5
refresh_pattern -i  cname.eydns.com 5  50%  5

refresh_pattern -i \.gif$ 5 50% 20 ignore-reload
refresh_pattern -i \.png$ 5 50% 20 ignore-reload
refresh_pattern -i \.jpg$ 5 50% 20 ignore-reload
refresh_pattern -i \.bmp$ 5 50% 20 ignore-reload
refresh_pattern -i \.swf$ 5 50% 20 ignore-reload

#refresh_pattern -i \.wam$ 600 50% 1200 ignore-reload
#refresh_pattern -i \.mp3$ 600 50% 1200 ignore-reload
#refresh_pattern -i \.exe$ 600 50% 1200 ignore-reload
#refresh_pattern -i \.rar$ 600 50% 1200 ignore-reload
#refresh_pattern -i \.zip$ 600 50% 1200 ignore-reload

refresh_pattern -i \.js$   5 50% 20 ignore-reload
refresh_pattern -i \.jsp$  0 50% 20 ignore-reload
refresh_pattern .        0        20%        0

acl d-domains dstdomain .com .cn .net .org .cc .info .biz .mobi .tv .name
acl all src 0.0.0.0/0.0.0.0
acl p-manager proto cache_object
acl s-localhost src 127.0.0.1/255.255.255.255
acl d-localhost dst 127.0.0.0/8
#acl p-ssl  port 443 563
acl p-safe port 80
acl m-conn method CONNECT
acl m-purge method PURGE
acl n-maxconn maxconn 15
http_access allow p-manager s-localhost
http_access allow m-purge
http_access allow p-manager
http_access allow d-domains
http_access deny  !p-safe
#http_access deny  m-conn !p-ssl
http_access deny  n-maxconn
http_access deny  all
http_reply_access allow all
acl r-url urlpath_regex realtime
cache deny r-url
icp_access allow all
visible_hostname xx.com
logfile_rotate 0
always_direct allow all
cache_mgr admin@xx.com
cache_effective_user squid
cache_effective_group squid
tcp_recv_bufsize 65535 bytes
logfile_rotate 1

[ 本帖最後由 網路 於 2008-10-8 04:47 編輯 ]
《解決方案》

斑竹 和高手們幫忙下
《解決方案》

1.1.1.1   a.cn

2.2.2.2   b.cn  這裡的設置 你在配置文件里寫上了嗎
《解決方案》

你這個應該是反向代理吧
acl aa dstdomain b.cn
cache_peer b.cn parent 80 0 no-query originserver no-digest
cache_peer_access b.cn deny !aa
加進suqid.conf試試

[火星人 ] 為什麼hosts 2條域名指向不同的IP 其中一條就不能正常呢?已經有444次圍觀

http://coctec.com/docs/service/show-post-25962.html