IP server popup unwanted domain

Discussion in 'General' started by Hellbound, Sep 16, 2005.

  1. Hellbound

    Hellbound New Member

    hi guys,
    I've setup couple of website on my server but if I type the server ip in browser, it will popup the first domain sorted alphabetically, which I want to change that to my server homepage.

    how?

    thanks
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    When you have no matching name based vhost, apache will show the first site it finds for the doamin. To have a global default for this case, you can add a default vhost to your httpd.conf before the line:
    Include /etc/apache/vhosts/Vhosts_ispconfig.conf:

    <VirtualHost 192.168.0.1>
    ServerAdmin webmaster@yourdomain.com
    DocumentRoot /path/to/your/company/website/
    </VirtualHost>

    Dont forget to change the IP, emailaddress and path :D
     
  3. Hellbound

    Hellbound New Member

    thanks alot
    that did the job.
     

Share This Page