Chris DeCenzo wrote:
> Hi.
>
> I have a web server running on the same machine as my squid proxy and I
> would like to access it using "localhost" rather than the machine's
> hostname, however, when I type http://localhost into my web browser I get
> the squid error below.
>
> By the way, using 127.0.0.1 works here but the name "localhost" does not.
> Is there any way to tell my squid proxy that localhost resolves to
> 127.0.0.1? Or even my machine's actual ip?
>
> I appreciate the help.
> -Chris DeCenzo
>
> Error I get:
>
> The requested URL could not be retrieved
>
> While trying to retrieve the URL: http://localhost/
>
> The following error was encountered:
>
> Unable to determine IP address from host name for localhost
>
> 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 webmaster.
> _______________________
>
> Christopher DeCenzo
> Liberate Technologies
>
> decenzo@liberate.com
> (650) 701-5223
>
> 2 Circle Start Way
> San Carlos, CA 94070
> _______________________
>
> Hi:
I'm not sure if this is your case but I think you should take a look at the
dns_defnames tag in the squid.conf file. By default it's disabled to
prevent caches in a herarchy from interpreting single components hostnames
locally.
Best Regards
Ing. Joel Nunez
Havana, Cuba
>
>
>
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Sat Sep 09 2000 - 09:12:07 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:14 MST