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 in the Vhost.conf.

    If I try to access the site with just 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 part for the ServerName?

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

  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 that you all want to end up as

  3. falko

    falko Super Moderator Howtoforge Staff

    ISPConfig creates
    by default.
  4. jolierouge

    jolierouge New Member



    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.

  5. falko

    falko Super Moderator Howtoforge Staff

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

Share This Page