squid Invalid URL

配置如下:

cache_peer 16.158.83.109 parent 80 0 no-query originserver name=vmcentos

cache_peer_domain vmcentos www.vmcentos.com

cache_peer_access vmcentos allow all

http_port 80

但总是出现下面的错误:

The following error was encountered while trying to retrieve the URL: /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=0

Invalid URL

Some aspect of the requested URL is incorrect.

Some possible problems are:

  • Missing or incorrect access protocol (should be http:// or similar)
  • Missing hostname
  • Illegal double-escape in the URL-Path
  • Illegal character in hostname; underscores are not allowed.———————————————————————————————-解决方法:在http_port 80后加上defaultsite=www.vmcentos.com就可以了, 如下:

    http_port 80 defaultsite=www.vmcentos.com

2 thoughts on “squid Invalid URL”

Comments are closed.