inteldigital

Well-Known Member
Apr 5, 2018
87
15
8
England
cPanel Access Level
Root Administrator
Twitter
Hi,

I resell quite a few domain names. I've tried to figure this out, but cannot. Is there a way I can automatically provision skeleton files for addon domains/subdomains.

For example, I'd like to create a landing page for domains for sale, if I addon a domain - the skeleton files would be provisioned to include this landing page, so anyone visiting the domain would see it. I understand that a new cPanel account is provisioned this way, however, I don't intend to create a new cPanel account for each domain, this would be ridiculous.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hi @inteldigital

I believe what you're looking for is the Web Template Editor. You can create placeholder pages for domains which have no site created.

Our documentation on this can be found here:

Web Template Editor

Thank you,
 

inteldigital

Well-Known Member
Apr 5, 2018
87
15
8
England
cPanel Access Level
Root Administrator
Twitter
Hi Lauren,

I'm not sure. For example, when I addon a domain into my account, if I go to it (with no files in the directory) it shows the directory listing ie.
/
/cgi-bin

and I can click into the directories. How do I make this stop and show a 404 page or some sort of default page?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston

Metro2

Well-Known Member
May 24, 2006
473
49
178
USA
cPanel Access Level
Root Administrator
I was tempted to start a new thread on this, but I found this one and figured maybe start here....

This Feature Request has been sitting for 5 years - skeleton directory for addon and sub domains

I simply want my custom skel files from /root/cpanel3-skel (I have a set including custom index.html , blank robots.txt , generic favicons, and my custom 400.shtml thru 500.shtml files) to be automatically populated into any Addon Domains that user's create, just like it does for the public_html when I create a new hosting account. Will this ever become possible cPanel?
 
  • Like
Reactions: Optimizr

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hi @Metro2

Right now it looks like there isn't much movement on this. For the feature request, the best advice I can give you would be to vote on it and become a part of the discussion. The more interest there is in a request the more it's on our radar.

Thanks!
 

Metro2

Well-Known Member
May 24, 2006
473
49
178
USA
cPanel Access Level
Root Administrator
Hi @Metro2

Right now it looks like there isn't much movement on this. For the feature request, the best advice I can give you would be to vote on it and become a part of the discussion. The more interest there is in a request the more it's on our radar.

Thanks!
Thank you @cPanelLauren , and I did add my vote / joined the discussion at skeleton directory for addon and sub domains before posting here. Hoping to gain some momentum from other members of the community who need this feature as much as the 18 of us who have voted for it so far.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston

Metro2

Well-Known Member
May 24, 2006
473
49
178
USA
cPanel Access Level
Root Administrator
HI @Metro2

I'm glad to hear that. Someone else brought up a great idea as well today. The use of post addon domain creation hooks to achieve this in the meantime. I'm going to work on getting a walkthrough to doing this created but you're more than welcome to check out our documentation on it as well:

Guide to Standardized Hooks - Developer Documentation - cPanel Documentation
Thank you. And yes I have read through those docs several times, including the required Guide to Standardized Hooks - Hook Action Code - Developer Documentation - cPanel Documentation section, and it's just not straight-forward enough for me. If it were easy and straight-forward enough for some of us, there wouldn't be a 5 year old feature request still active for it ;-)

Many thanks for your replies!