Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache virtual hosting question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tobimat80
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 272
Location: Trier - Germany

PostPosted: Sat Oct 18, 2008 8:11 am    Post subject: Apache virtual hosting question Reply with quote

Hello

I have a question regarding the name resolution in the web browser bar when accessing my virtual host:

My configuration: For my web server I have realized a high availability setup with the help of heartbeat.
The server listens on a virtual ip address. I have a primary and a secondary webserver, that back up
each other. Now I have configured apache web server with a virtual host that listens on the virtual
ip address:

<VirtualHost 192.168.19.16:80>
ServerName mydomain.com
...
</VirtualHost>

Now I have switched my dns entry to the virtual address. It works fine, but I have the problem that
in the address bar of a web browser the real ip address of the server is shown and not my dns entry?

What am I missing? Thx

Tobias
_________________
Wer Rechtschreibfehler findet, darf sie behalten und auf DVD brennen!
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 622
Location: Yeovil, Somerset, UK

PostPosted: Mon Oct 20, 2008 9:45 pm    Post subject: Re: Apache virtual hosting question Reply with quote

tobimat80 wrote:
Hello
Now I have switched my dns entry to the virtual address. It works fine, but I have the problem that
in the address bar of a web browser the real ip address of the server is shown and not my dns entry?
Tobias


Normally web content would not cause a browser to display an IP address. Perhaps you have some content that is returning the IP address rather than a URL with just a hostname in it.

Cheers
Jon
Back to top
View user's profile Send private message
mieses
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 110

PostPosted: Thu Nov 13, 2008 6:28 am    Post subject: Reply with quote

Do you get the same result when Heartbeat is not enabled?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum