default landing page

Discussion in 'Installation/Configuration' started by chief, Jun 14, 2012.

  1. chief

    chief New Member

    Hi
    Possibly an easy one..

    I have 4 servers thor.tlsystems.co.uk, thor2.tlsystems.co.uk, thor3.tlsystems.co.uk and odin.tlsystems.co.uk

    I can log in to the control panel.

    When you go to http://thor3.tlsystems.co.uk or the IP 194.168.31.52 the default page is one of the sites i host.
    It is running ispconfig3

    What file do i need to edit to change the default landing page, preferably point it to my main domain ie, www.tlsystems.co.uk.

    cheers

    dave
     
  2. falko

    falko Super Moderator

    I think you need to create a default virtual host for that IP with no ServerName directive in it.
     
  3. chief

    chief New Member

    thanks falko, i will try
     
  4. chief

    chief New Member

    falko,

    sorry for being silly, you said "I think you need to create a default virtual host for that IP with no ServerName directive in it. "

    does that mean editing my httpd.conf and updating section 3 virtual hosts
    i did do "/usr/sbin/httpd -S" and it showed all my virtual hosts, i have added 194.168.31.52 as a host in ispconfig control panel as a website, The output of "/usr/sbin/httpd -S" shows "default server 194.168.31.52 (/etc/httpd/conf/sites-enabled/100-194.168.31.52.vhost:7)"

    do i edit /etc/httpd/conf/sites-enabled/100-194.168.31.52.vhost and remove the IP from ServerName?

    dave
     
  5. chief

    chief New Member

    didnt work
     
  6. chief

    chief New Member

    like this ?

    Edit httpd.conf and before the line:
    Include /etc/apache/vhosts/Vhosts_ispconfig.conf:

    add
    <VirtualHost 194.168.31.52>
    ServerAdmin me@here.com
    DocumentRoot /path/to/your/company/website/
    </VirtualHost>


    dave
     
  7. falko

    falko Super Moderator

Share This Page