鱿鱼和更多的主机

我把我的Squidconfiguration为visible_host myhost.com上的透明caching

现在我需要做一个testing: – 我修改我的主机文件redirect浏览器请求myHost2.com到同一台机器(鱿鱼+ Apache)但是,当我尝试看到这个消息错误:

The requested URL could not be retrieved ________________________________ While trying to retrieve the URL: http://myhost2.com/ The following error was encountered: Unable to determine IP address from host name for myhost2.com The dnsserver returned: Name Error: The domain name does not exist. This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. Your cache administrator is root. 

我怎样才能允许这个请求? 这只是一个testing,所以我会把请求传递给我的Apache。 鱿鱼不必过滤请求..

错误表示Squid无法parsing主机名。

鱿鱼需要解决它所代理的任何系统的DNS名称。 这可能意味着你需要修改你的Squid主机上的主机文件,或者这可能意味着在Squid主机上build立一个本地DNS服务器。