View previous topic :: View next topic |
Author |
Message |
tobimat80 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Barret.gif)
Joined: 27 May 2003 Posts: 272 Location: Trier - Germany
|
Posted: Sat Oct 18, 2008 8:11 am Post subject: Apache virtual hosting question |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
gerdesj l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 29 Sep 2005 Posts: 622 Location: Yeovil, Somerset, UK
|
Posted: Mon Oct 20, 2008 9:45 pm Post subject: Re: Apache virtual hosting question |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mieses Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/158682496540458b5386c98.jpg)
Joined: 28 Feb 2004 Posts: 110
|
Posted: Thu Nov 13, 2008 6:28 am Post subject: |
|
|
Do you get the same result when Heartbeat is not enabled? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|