SubDomain

Discussion in 'General' started by abintipl, Jan 21, 2011.

  1. abintipl

    abintipl Member

    Hello Sir,

    I want to add some subdomain "test.example.com"

    My website is example.com

    To do so, I went on ISPConfig 3 menu => "Sites" =>

    Then added a New website by name " test.example.com" also selected "None" in Auto-sub-domains menu

    Then I have selected " DNS" which I created for my website through DNS wizard

    In the same DNS I have added

    Cname record as under

    host: made "Subdomain". Then i entered following:

    Hostname: test
    Target Hostanme : example.com

    Then saved it

    Then I also added A record as under;

    Hostname: test.example.com.
    Ip address: xx.xxx.xxx.xxx of my server
    TTL: 86400
    Active : yes

    then saved it

    Furthermore, I have also added DNS in my Cloud Server DNS zones


    I can access my website example.com & Test page is shown but when I access test.expample.com I get an Error "Page not found"

    Please advice,

    Thanks

    Abin
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not have a cname and dns A-record for the same subdomain as they are duplicate. Please remove either the dns-a record or the cname record.
     
  3. abintipl

    abintipl Member

    One more Problem for

    Dear Sir,

    Thank you for your reply & as per instructions, I have deleted A record & CNAME is intact & its working fine.

    I have come up with another prnblem, I Created another Sub Domain by the name xyz.example.com(example.com is my Domain)

    When I type in web Browser

    test.example.com ..........it's works fine

    but if I try accessing

    xyz.example.com it shows content of example.com

    Please note, I have have created 2 CNAME records for both test as well as XYZ & example.com index.html is different.

    Please advice, how many SubDomains can we create?

    Sir, I have checked all the settings of test as well as xyz & are Same

    Please advice

    regards,

    Abintipl
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You can create as many subdomains as you like.

    Can you post the vhost configurations of test.example.com and xyz.example.com?
     
  5. abintipl

    abintipl Member

    Reply

    Sir,

    Could you please help me to run the command to check Vhost

    Thanks for your cooperation & support

    regards,

    Abin
     
  6. falko

    falko Super Moderator Howtoforge Staff

    If you are on Debian/Ubuntu, you can find the vhost configuration files in the directory /etc/apache2/sites-available/.
     
  7. abintipl

    abintipl Member

    Thanks

    Hello,

    Sir, its working fine Now

    Thanks a lot for your kind & prompt support

    regards,

    Rajiv
     

Share This Page