The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

4th level subdomain

Discussion in 'General Discussion' started by neonex, Dec 19, 2002.

  1. neonex

    neonex Registered

    Joined:
    Dec 19, 2002
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. chakky

    chakky Well-Known Member

    Joined:
    Sep 22, 2002
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    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. :)
     
Loading...

Share This Page