Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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
     
  2. chakky

    chakky Well-Known Member

    Joined:
    Sep 22, 2002
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    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. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice