Going to server IP shows clients website
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.
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.
Will give it a test and report back.
Other option wouldbe to register something like 000-CCC.tld
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.