Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    3

    Default Catch-all Subdomain

    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. #2
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    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

Similar Threads & Tags
Similar threads

  1. catch-all changes in 11
    By ike in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 07-25-2007, 08:56 PM
  2. Catch-all not working..
    By sep in forum E-mail Discussions
    Replies: 0
    Last Post: 06-09-2007, 05:44 AM
  3. Catch all for all
    By tkporce; in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-30-2006, 04:43 PM
  4. catch all not working
    By elleryjh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-19-2003, 09:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube