|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to setup subdomains for the domain www.chsweb.tk
I have CNAME records setup for 3 subdomains, 1 being tgd. like this tgd IN CNAME chsweb.tk. Then in apache i have virtual host records for each domain/subdomain like this <VirtualHost *> ServerAdmin admin@gto.dynu.com DocumentRoot D:/apache2/htdocs/chsweb ServerName www.chsweb.tk ServerAlias www.chsweb.tk chsweb.tk </VirtualHost> <VirtualHost *> ServerAdmin admin@gto.dynu.com DocumentRoot D:/apache2/htdocs/chsweb/tgd ServerName www.tgd.chsweb.tk ServerAlias www.tgd.chsweb.tk tgd.chsweb.tk </VirtualHost> The address http://tgd.chsweb.tk still shows http://www.chsweb.tk I'm wonder if this is setup right or perhaps i just need to wait for DNS information to expire and get updated with these new records. |
|
#2
|
||||
|
||||
|
If there's not specific reason for using a CNAME record, use an A record for tgd.chsweb.tk and www.tgd.chsweb.tk - you'll save users an extra dns query and save headaches trying to work out why your config's not working.
__________________
FreeBSD Admin Tips Tricks and Scripts |
|
#3
|
||||
|
||||
|
Your DNS configuration didn't need to be changed at all. The *.chsweb.tk record already points all subdomains and yes, even subdomains like "my.very.good.friend.chsweb.tk" to the same IP address.
So delete your CNAME records. Your DNS is fine. It's a problem with your apache virtual hosts. Are those all the virtual hosts you have configured? There may be a wildcard virtual host alias which is keeping your other subdomains from working.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Subdomains |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|