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.

Catch-all Subdomain

Discussion in 'General Discussion' started by MSteinblock, Jul 4, 2006.

  1. MSteinblock

    MSteinblock Registered

    Joined:
    Aug 11, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I would like to create a catch-all subdomain that points to the public_html folder. I would like to keep existing manually created subdomains pointing in their proper directories. Also, I dont want to "redirect" them to the domain, but instead keep them with the subdomain in the url bar.

    Reason is....

    I have a photo website that I would like to create custom subdomains for each user. I can use programming to pull the information out of the subdomain url and create the proper page.

    I have worked with IIS alot and can do this easily in two steps. I was curious how to do it in CPanel.

    Thanks~

    Matthew
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    Add ServerAlias directives into the domain container in the httpd.conf

    so if you have domain.com it should already have an alias for www.domain.com

    ServerAlias www.domain.com

    just add another entry for the subdomain
     
Loading...

Share This Page