Problem with subdomain

Discussion in 'General' started by nikoladd, Jun 14, 2009.

  1. nikoladd

    nikoladd New Member

    I had a problem with subdomain usage with ISPC3. I needed a subdomain with a separate document root but it kept showing the main domain.

    I found out that this happens if you give a speciffic IP to the main domain but use the * for the subdomain(subdomain is a separate site here) while both are pointed to the same IP by DNS.

    Resolutions are:
    1) point the subdomain to a different IP (DNS A record)
    2) set it explicitly to listen on the same IP in the "edit site" screen
    3) unset the explicit IP for the main domain vhost in the "edit site" screen

    Hope this will help someone. I lost half a day looking stupid at this problem :(

    P.S. It is actually an apache quirk...but still may be usefull.
     
    Last edited: Jun 14, 2009
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Either you have to select a IP (can be the same IP) for both sites or you will have to use * for boths sites. It does not matter if its a subdomain or a different domain, asl long as they point to the same IP you will have to use either * for all domains on this IP or select the IP address for all sites instead of * but do not mix it.
     

Share This Page