Results 1 to 4 of 4

Thread: Multiple sub domain?

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    22

    Multiple sub domain?

    Hi guys,
    I am trying to put multiple subdomain on my website, but it didn't worked...this is my conf of Virtual host on apache2 (debian)

    Code:
                                                                           
    
    <VirtualHost *:80>
    ServerName www.testing.com
    
    DocumentRoot /home/www/testing.com/htdocs
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName www.testing1.testing.com
    DocumentRoot /home/www/testing.com/htdocs/test1/htdocs
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName www.testing2.testing.com
    DocumentRoot /home/www/testing.com/htdocs/test2/htdocs
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName testing3.testing.com
    DocumentRoot /home/www/testing.com/htdocs/test3/htdocs
    </VirtualHost>



    Restart apache2 /etc/init.d/apache2 restart and I typed
    http://testing3.testing.com or www.testing3.testing.com www.testing2.testing.com but it didn't worked... help pls?

  2. #2
    Member
    Join Date
    Sep 2006
    Location
    At a keyboard
    Posts
    82
    Hmm, The config above looks right, seems to be missing something though. I believe for seperate domains you would either need to asign unique ports or IP address, so subdomains I'm not so sure on though. Have you seet up the dns on the machine. Im pretty sure if your using bind you will need to do so. I would look it up for you but the bind9 man pages make my eyes bleed.
    "I have died, I will die, It's alright, I don't mind"

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    22
    How can I set DNS for that multiple subdomain? any sample of configuration DNS I can look at it?

  4. #4
    Member
    Join Date
    Sep 2006
    Location
    At a keyboard
    Posts
    82
    The only thing I can suggest is checking the documention of the dns service running on your server.
    "I have died, I will die, It's alright, I don't mind"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •