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.

Automated Sub Domains?

Discussion in 'General Discussion' started by hammertek, Oct 10, 2006.

  1. hammertek

    hammertek Registered

    Joined:
    Oct 10, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Any scripts out there that allow form/database creation of the cPanel? My site will require customers to sign up in which they recieve a sub domain.

    Thanks
     
  2. hammertek

    hammertek Registered

    Joined:
    Oct 10, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Oh I just found this this thread I guess this will do?
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    I would say use wildcard DNS which would make a lot more sense

    Basically an "A" entry in the DNS named "*" will allow the domain to
    receive any subdomain address at the domain without having to
    explicitly set up the subdomain each time.

    The all you do is just add a ServerAlias line to the account with
    the main primary domain that will be using the subdomains:

    ServerAlias *.domain.com

    (replace domain.com with the user's domain)

    After that, the user could use whatever scripts they wish to deliver content
    based on the $HTTP_HOST variable or make redirects, etc.

    Won't be necessary to setup any actual subdomains
     
  4. gregriv69

    gregriv69 Registered

    Joined:
    Nov 29, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Spiral or anybody else, what are the steps to this?

    Spiral, i'm new to this, what are the steps you actually take to achive what you mentioned below?



    I would say use wildcard DNS which would make a lot more sense

    Basically an "A" entry in the DNS named "*" will allow the domain to
    receive any subdomain address at the domain without having to
    explicitly set up the subdomain each time.

    The all you do is just add a ServerAlias line to the account with
    the main primary domain that will be using the subdomains:

    ServerAlias *.domain.com

    (replace domain.com with the user's domain)

    After that, the user could use whatever scripts they wish to deliver content
    based on the $HTTP_HOST variable or make redirects, etc.

    Won't be necessary to setup any actual subdomains
    Reply With Quote
     
Loading...

Share This Page