Going to server IP shows clients website

Discussion in 'Installation/Configuration' started by edge, Aug 4, 2009.

  1. edge

    edge Active Member Moderator

    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.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. edge

    edge Active Member Moderator

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

    edge Active Member Moderator


    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!

Share This Page