httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] apache hostname resolution (strange problem)
Date Tue, 28 Aug 2007 16:41:31 GMT
> >> I have the oddest situation. I have a test server on the LAN. I added a
> >> host entry for www.myserver.com (actual name changed to protect the
> >> innocent). I can ping www.myserver.com and my resolved address matches
> >> the host entry. Life is grand, no?

> >> I have apache configured with a virtual host for www.myserver.com.
> >> Watch what happens when I check my virtual hosts with httpd -S. I get
> >> the PUBLIC internet address for www.myserver.com:

On 11.07.07 10:55, Jeff Fulmer wrote:
> I expect it to be 10.37.74.24. It can't bind a virtual host to an address
> that's not on the server. Here's the output of httpd -S

"of course" it can't bind to address which is not configured on your server

> lccas243$ bin/httpd -S
> VirtualHost configuration:
> 64.157.185.199:80      www.myserver.com

> On the server itself, www.myserver.com resolves to 10.37.74.24 which is
> the address I have in the /etc/hosts file. But apache is resolving it
> based on it's DNS entry. It does this even when I turn DNS off!

maybe using dnsmasq or other local DNS server which uses /etc/hosts would
help you.
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Despite the cost of living, have you noticed how popular it remains? 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message