Shared IP Fun: How to set ServerAlias for VHosts

Discussion in 'Tips/Tricks/Mods' started by jolierouge, Apr 22, 2009.

  1. jolierouge

    jolierouge New Member

    Hey All,

    Whenever I setup a site, it ends up as ServerName www.domain.com. in the Vhost.conf.

    If I try to access the site with just http://domain.com I get the shared IP funness, is there a way to get ISPConfig to automagically insert ServerAlias for the www. and just be able to use the domain.com part for the ServerName?

    That is, is there a way to do this without hacking the system/db.

    Thanks,
    Jason
     
  2. tebokkel

    tebokkel New Member

    What I do, is creating a co-domain (without hostname), which forwards to the hostname I want it to.
    Also the way that works if you have domains with similar spelling (ie abc.com ab-c.com a-bc.com) that you all want to end up as www.abc.com.

    Paul
     
  3. falko

    falko Super Moderator

    ISPConfig creates
    Code:
    ServerName www.domain.com
    and
    Code:
    ServerAlias domain.com
    by default.
     
  4. jolierouge

    jolierouge New Member

    Weird

    Hey,

    I did some investigating and it seems that it does in fact do this, and all other domains (about 20) perform as expected, i.e. www AND no www.

    It's just this one domain that gives me the shared IP problem...

    I'll need to investigate further, and if I find the problem I'll be sure to post it.

    /Jason
     
  5. falko

    falko Super Moderator

    I guess you deleted the Co-Domain domain.com. You can recreate it on the Co-Domains tab.
     

Share This Page