-
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?
-
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.
-
How can I set DNS for that multiple subdomain? any sample of configuration DNS I can look at it?
-
The only thing I can suggest is checking the documention of the dns service running on your server.