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!

subdomain with www

Discussion in 'General Discussion' started by Markwaugh, Sep 13, 2003.

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sydney, Australia
    Hello,

    I have a subdomain http://a.b.com. I want to set up this subdomain as http://www.a.b.com i mean with www infront of the subdomain.

    I setup it some way, but if i type http://www.a.b.com i get the main domains index page. any ideas how to make it work. I have a separate index page for the subdomain.

    At present i have

    ServerAlias www.a.b.com a.b.com in httpd.conf file

    www.a.b.com. 14400 IN A 16.125.209.90 in zone file of the main domain


    Do i have to setup a separate zone file for the subdomain a.b.com like a.b.com.db .

    any ideas would be highly appreciated. Thank you for ur time.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Jaime

    Jaime Active Member

    Joined:
    Aug 20, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Palma de Mallorca
    You could try changing:

    www.a.b.com. 14400 IN A 16.125.209.90

    to

    www.a.b.com 14400 CNAME a.b.com.

    (I'm not sure if that works)

    or create a new zone for a.b.com.

    Jaime

    cPanel.net Support Ticket Number:
     
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