subdomain creation, without subdirectory of public_html?

tsilihin

Member
Aug 25, 2003
19
0
151
Hi there

I am looking at running a website that will be using multiple subdomains, generated on a per-user basis. My current web host doesn't allow wildcard dns, so I'm looking to implement user-based subdomains another way.

I found this thread which gives an outline of how to create a subdomain transparently through the cpanel admin interface, which is a great help - but what I need to do is set up the subdomains so that they don't use a subdirectory of /public_html as their root - they need to use /public_html as their root. Is it possible to set a subdomain's root through whm's api, or some other way?

Thanks in advance for any assistance.
 

tsilihin

Member
Aug 25, 2003
19
0
151
Thanks Chirpy ... I knew this, but I don't have access to httpd.conf because I'm not the administrator of the server ...

My question is if there is a way to do it via the cPanel / WHM api?
 

tsilihin

Member
Aug 25, 2003
19
0
151
thanks dalem - tried that too (initially) - my host isn't willing to allow wildcard dns, which is why I was trying to fudge it manually.

does anyone have any recommendations for (or is anyone here) a cpanel host who will support wildcard dns?

thanks :)
 

bpmod

Well-Known Member
Sep 23, 2004
49
0
156
How many sub-domains are you adding? And are you adding them all at once, or over a span of time?

You might try adding the sub-domains first, that is, set up a new domain called sub1.domain.com, then a parked (not sub or addon) domain called sub2.domain.com... etc., until all subs are added. Then finally add the main domain as a parked domain.

I haven't tried this so I don't know if it will work, but it may.

Thanks

Brian
 

tsilihin

Member
Aug 25, 2003
19
0
151
Thanks for the suggestion bpmod.

Unfortunately I'd be doing it in a reverse way ... subdomains would be handed out as new users signed up.

I'm likely going to take dalem up on the hosting offer in the not-too-distant future :)