How to create index.html every time I add a domain?

Started by angelbro, February 10, 2018, 09:53:02 AM

Previous topic - Next topic

angelbro

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.

n8v8r

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

bullten

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.

angelbro

Quote from: n8v8r 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

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