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!

dumb.subdomain.question

Discussion in 'General Discussion' started by sneader, Nov 9, 2003.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,156
    Likes Received:
    40
    Trophy Points:
    178
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I must be a real moron, but I can't figure this out.

    Main account is xyz.com

    www.xyz.com works fine, points to home/xyz/public_html

    I also want testing.xyz.com to point to the same directory, home/xyz/public_html. In other words:

    www.xyz.com = testing.xyz.com

    Everything I can see about creating subdomains, or add-on domains, takes the new domain/subdomain and points it to a subdirectory. I tried using Add-On Domains, but it won't let me add on "testing.xyz.com".

    I could probably get this going by firing up a shell session (I'm the root owner of the box), but I would like to figure this out via cPanel.

    Thanks, in advance, for helping a newbie.

    - Scott
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,156
    Likes Received:
    40
    Trophy Points:
    178
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I would still like to know how to use cPanel to make a subdomain point to the main public_html directory, so that testing.xyz.com = www.xyz.com

    However, I figured out how to do it via SSH... I just edited the httpd.conf and restarted Apache. The setting that needed to be edited is the ServerAlias.

    It used to say:

    ServerAlias www.xyz.com xyz.com

    I changed it to read:

    ServerAlias www.xyz.com testing.xyz.com xyz.com

    That was pretty easy. Any way to do this within cPanel or WHM?

    - Scott
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Could you create the subdomain as usual and then park it on top of the main domain? I don't know I'm just trying to help brainstorm.
     
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