DNS issues with ISPConfig 3

Discussion in 'Installation/Configuration' started by Dag Andresen, Sep 17, 2009.

  1. Dag Andresen

    Dag Andresen New Member

    EDIT: Issue has been solved, thanks.
    ( Had to comment out NameVirtualHost *:80 in httpd.conf and create domains using www under autosubdomain... to create alias)..


    Hello,

    I'm having some issues. I have finally managed to link my server IP with domains. Now there is one problem. I got this domain: "test.com"... and I create many sites...
    like:
    test.com
    ampjuke.test.com
    demosite.test.com

    the problem is, when I go to test.com, demosite.test.com or ampjuke.test.com everything is fine! but when I use WWW and go to www.test.com, www.demosite.test.com and www.ampjuke.test.com I always end up at the ampjuke.test.com page :confused::confused:

    Can someone help me?

    I will use these nameservers for all my domains: ns1.test.com and ns2.test.com

    Included is some images of my setup:
    First, for the is.mu domain ... (the one I also use for nameservers ns1.test.com)
    image removed
    Second is just one test site demosite.test.com ... it works without www only...
    image removed
     
    Last edited: Sep 19, 2009
  2. Dag Andresen

    Dag Andresen New Member

    Been trying some more and now I lost it all... now all I see is the Apache 2 Test Page powered by CentOS

    You can see:
    http://test.com
    http://test.test.com
    http://www.test.test.com

    All goes to that apache page... I've setup zones for both domains and sites... any idea why they don't appear?
     
    Last edited: Sep 19, 2009
  3. damir

    damir New Member

    If u run following command in terminal:

    dig A is.mu and dig A www.is.mu

    what is the output message ?
     
  4. Dag Andresen

    Dag Andresen New Member

    dig is.mu:
    www.test.com:
    Now I'm back at the problem I had in first post... no matter which domain I enter I always end up at the same...
     
    Last edited: Sep 19, 2009
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not DNS related. You just have to make sure that you selected the IP address in the website settings instead of *.
     
  6. Dag Andresen

    Dag Andresen New Member

    I don't get it to work.... I either end up having all apache pages or all pages the same.... or 404 error not found...

    Now I removed everything except from test.com dns and then I did this:

    1. Sites -> Add new website -> Choose client, and the IP adress -> write domain: test.test.com and save...
    2. Then I go to FTP and create user for this domain.
    3. Then I go to DNS and press Add DNS zone... choose client -> enter domain test.test.com and ip, nameservers (ns1.test.com and ns2.test.com) and email...

    Now I get apache page? :confused::confused:

    Also... what kind of zone should be used for main domain/name server domain? I think it's correct, but what do I know? It looks like this (I added ns2 too after this picture was taken).
     
    Last edited: Sep 19, 2009
  7. Dag Andresen

    Dag Andresen New Member

    Ok I tried a few things and came to this conclusion:
    If I create a website and use IP the only thing that will be displayed is the Apache 2 page... If I create a website using * as IP then all other websites will be redirected to this site.

    I'm doing as "till" said and has created all sites with IP... Now the question is: Why doesn't each domain display their www folder? It seems like all sites are just sent to the standard html folder where the apache page is located... :confused::confused::confused:
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the vhost files of the created sites.
     
  9. Dag Andresen

    Dag Andresen New Member

    EDIT: Issue solved.
    etc/httpd/conf/sites-enabled...
     
    Last edited: Sep 19, 2009
  10. Dag Andresen

    Dag Andresen New Member

    OK issue has been solved! Thank you
     
    Last edited: Sep 19, 2009

Share This Page