default directory for domain?

Discussion in 'Installation/Configuration' started by bseibenick, Dec 22, 2009.

  1. bseibenick

    bseibenick New Member

    I am new to ISPConfig and installed V3 on my fresh Centos 5.4 VPS machine over the weekend. I have almost everything working with minimal issue. One question I have is about domain and sites. I am using an external dns server so I my hosting company makes the changes for me as needed. If I have www.domain1.com, www.domain2.com and www.domain3.com pointed at my shared IP but only a site setup in ISPConfig for www.domain1.com by default it appears the www.domain2.com and www.domain3.com will point at the first vhost site that it finds. Is there a way to have a 'default' site setup that any sites will point to if they are not setup in ISPConfig? This would also be similar if sub1.domain.com, sub2.domain.com, etc.

    Thanks,
    Brian
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can add a default vhost in apache for this. Example:

    <VirtualHost _default_:*>
    DocumentRoot /www/default

    </VirtualHost>
     
  3. bseibenick

    bseibenick New Member

    That worked.

    Thanks,
    Brian
     

Share This Page