codomains going to shared IP

Discussion in 'Server Operation' started by Ovidiu, May 17, 2006.

  1. Ovidiu

    Ovidiu Active Member

    hello,

    yesterday I pointed a domain to my server, set up a codomain like described in the manual without any forwards, I just want both domains to point to the same content.

    when I browse to the codomain I end up inside my shared IP folder.

    any clues why?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Is your new Co-Domain listed in Vhosts_ispconfig.conf?
     
  3. Ovidiu

    Ovidiu Active Member

    I found this entries:

    <VirtualHost 81.169.176.18:80>
    SuexecUserGroup web2_info web2
    ServerName www.hai-hui.net:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web2/web
    ServerAlias hai-hui.net hai-hui.eu
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 $
    ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/
    AddHandler cgi-script .cgi

    www.hai-hui.eu is the codomain, www.hai-hui.net is the main domain.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You added a co-domain: hai-hui.eu but you missed to add a co-domain:

    host: www
    domain: hai-hui.eu
     
  5. Ovidiu

    Ovidiu Active Member

    I added that after posting but it does not help at all !?

    I tried saving again but with hostname www it does not get saved to Vhosts...

    I just manually entered www.hai-hui.eu as ServerAlias and it works...

    no idea why it did not get saved.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page