Control Web Panel

WebPanel => How to => Topic started by: BelKoD on December 10, 2018, 11:03:52 AM

Title: structure catalog for clients
Post by: BelKoD on December 10, 2018, 11:03:52 AM
Hi!

Default structure^
/home/client1/public_html

But need:
/var/www/clients/client1
/var/www/clients/client1/domain1
/var/www/clients/client1/domain2

/home/client1/public_html is symlink on /var/www/clients/client1

All domain has:
/var/www/clients/client1/domain1/log
/var/www/clients/client1/domain1/tmp
/var/www/clients/client1/domain1/web - all files
/var/www/clients/client1/domain1/cgi-bin

How to create this structure?
Title: Re: structure catalog for clients
Post by: studio4host on December 11, 2018, 08:52:56 AM
you can place domains only inside users home folder, example

main domain
/home/client1/public_html

other domains example
/home/client1/domain1.com
/home/client1/domain2.com
or
/home/client1/vhosts/domain2.com
/home/client1/vhosts/domain3.com
Title: Re: structure catalog for clients
Post by: BelKoD on December 11, 2018, 12:09:09 PM
CWP6.

Is it possible to create the necessary directory structure when creating a client (domain)? (automatic)

Need hook (after, before). It's possible?