亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 10133 | 回復(fù): 6
打印 上一主題 下一主題

[FreeBSD] squid安裝提示"The requested URL could not be retrieved" [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-08-27 01:49 |只看該作者 |倒序?yàn)g覽
本帖最后由 cfanbo 于 2011-08-27 02:03 編輯

freebsd用的ports安裝的
ERROR

The requested URL could not be retrieved



The following error was encountered:

Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed

squid.conf
  1. visible_hostname www.abccache.com
  2. cache_mgr haohtml@gmail.com
  3. http_port 3128 accel vhost vport

  4. cache_mem 512 MB
  5. maximum_object_size_in_memory 6 MB

  6. memory_replacement_policy lru

  7. cache_dir ufs /var/squid/cache 2048 16 256
  8. max_open_disk_fds 0

  9. cache_swap_low 80
  10. cache_swap_high 97

  11. minimum_object_size 0 KB
  12. maximum_object_size 30 MB

  13. logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss
  14. access_log /var/squid/logs/page_zs_access_log combined

  15. cache_log /var/squid/logs/cache.log
  16. cache_store_log none   

  17. cache_peer 192.168.0.100 parent 80 0 no-query no-digest originserver name=wwwabccom
  18. cache_peer_domain wwwabccom www.abc.com
  19. cache_peer_access wwwabccom allow all

  20. http_access allow all

  21. acl QUERY urlpath_regex .php .pl .cgi
  22. cache deny QUERY

  23. cache_effective_user squid
  24. cache_effective_group squid
復(fù)制代碼
參考:http://blog.haohtml.com/archives/5920,以前沒有用ports安裝,測試過這個(gè)教程沒有任何問題的.現(xiàn)在squid用的3128端口,web用的是80端口的,如果測試通過的后,將兩個(gè)端口換一下就可以了.

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2011-08-27 09:43 |只看該作者

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2011-08-27 21:15 |只看該作者
求高人指點(diǎn)一下呀

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2011-08-30 08:35 |只看該作者
我看你的配置暈乎乎的,你做反向?

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2011-09-05 16:12 |只看該作者
要實(shí)現(xiàn)的是反向代理,只是暫時(shí)端口沒有調(diào)換過來而已.等配置沒有什么問題的話,再換一下即可

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2011-09-05 18:17 |只看該作者
為什么不用ports呢?
答,裝叉

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2011-09-05 19:33 |只看該作者
用的就是ports安裝的,生產(chǎn)上用的是2.7的版本的,我只是將上面的配置直接放在了squid.conf文件的最后了.但上面默認(rèn)配置里有一個(gè)http_access deny all,所以提示"access deny"信息的.另外一個(gè)就是用的端口3128的問題了,最上面safe_port沒有這個(gè)端口的(原來將上面的取消了),后來加上這個(gè)就可以了
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP