HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Going to server IP shows clients website (http://www.howtoforge.com/forums/showthread.php?t=37953)

edge 4th August 2009 10:06

Going to server IP shows clients website
 
Problem.
CLients domain is BBB.TLD
My company's domain is CCC.TLD

Now when going to the servers IP the clients (BBB.TLD) website is shown.
How can I set it to show my (CCC.TLD) website.

I've done some testing and when I add a domain AAA.TLD it will be shown when accessing by IP.

It looks like the domains are sorted alphabetically, and served like that.

till 5th August 2009 09:30

Apache shows always the first website that it finds for an IP address. What you can do is that you rename the symlink in the apache sites-enabled directory to something like 000-CCC.TLD so that it comes before the other domains. But then you should not modify the settings of this domain in ispconfig or maybe you can try to set it to inactive so that ispconfig is not adding the original symlink again.

edge 5th August 2009 09:48

Will give it a test and report back.
Other option wouldbe to register something like 000-CCC.tld

edge 5th August 2009 10:04

Okay.

I made a simlink from /etc/apache2/sites-available to /etc/apache2/sites-enabled with the name 000-CCC.TLD, and after a apache2 restart it's now showing CCC.TLD when accessing the server by IP.

Thank you for the tip!


All times are GMT +2. The time now is 17:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.