hammertek

Registered
Oct 10, 2006
2
0
151
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
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
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
 

gregriv69

Registered
Nov 29, 2006
1
0
151
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