neonex

Registered
Dec 19, 2002
4
0
151
I've added a subdomain to my account (i.e. store.mydomain.com).

How can I allow users accessing this subdomain using www prefix (i,e www.store.mydomain.com) to be redirected to store.mydomain.com?

Thanks
 

chakky

Well-Known Member
Sep 22, 2002
58
1
156
Hi,

This can be done by the following method:
1.In /var/named/domain.com.db (In your primary nameserver)
add the following line:

www.store 14400 IN A Ipaddress

2.Then in your httpd.conf's virtual host entry for the
subdomain &store&, add the server alias of

ServerAlias www.store.domain.com

This should then start working correctly once the named and httpd are started and the DNS propagates (put ins some 5- 10 hours time delay for that )

I think the above steps should work it out correctly. :)