squid Invalid URL


cache_peer 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