Author Topic: How to create index.html every time I add a domain?  (Read 8624 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to create index.html every time I add a domain?
« on: February 10, 2018, 09:53:02 AM »
Hi everyone. :)

I think there is no ways or script to create index.html when I add a domain.
Am I right?

When I add user account, CWP makes file named index.html in directory of new user account.
And if necessary I make some files or directories in "/usr/local/cwpsrv/htdocs/resources/admin/tpl/new_account_tpl".
But when I add a domain or subdomain, CWP makes nothing.

How can I configure this?
Is there any script that I don't know?

Sorry for my bad english.

Re: How to create index.html every time I add a domain?
« Reply #1 on: February 10, 2018, 11:04:09 AM »
index.html/php in end user home spaces (public_html) are not created by CWP scripts. You need to upload whatever you want to be on display to each end user's home space

Offline
***
Re: How to create index.html every time I add a domain?
« Reply #2 on: February 10, 2018, 11:26:11 AM »
you can navigate to cd /usr/local/cwpsrv/htdocs/resources/admin/tpl/new_account_tpl

replace index.html with your index.html text and when a new account is created CWP will copy your index.html file to user public_html folder.

Offline
*
Re: How to create index.html every time I add a domain?
« Reply #3 on: February 10, 2018, 01:49:57 PM »
index.html/php in end user home spaces (public_html) are not created by CWP scripts. You need to upload whatever you want to be on display to each end user's home space

Thank you for ypur reply.
I hope next upgrade reflects that.