-
October 17th, 2006, 09:29 PM
#1
Junior Member
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?
-
October 18th, 2006, 12:13 AM
#2
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"
-
October 18th, 2006, 12:22 AM
#3
Junior Member
How can I set DNS for that multiple subdomain? any sample of configuration DNS I can look at it?
-
October 18th, 2006, 12:48 AM
#4
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
-
Forum Rules
|
|