Hi folks,
My question is how I can automatically remove the public_html symlink folder (home/[user]/public_html) when I create a new user.
The reason for this is to prevent mistakes. When there are multiple domains for a single user, this public_html folder will go to the default domain. I want to force our programmers to always use home/[user]/domains/[domain]/public_html.
I've read that when I remove the public_html symlink folder it will break up using server-ip/~[user], how can I automatically make it available through server-ip/[domain]? (by creating a symlink in /var/www/html/[domain])
I can do both of these things manually, but I'm wondering how I can do this automatically when I create a new user. Will removing the public_html symlink have any more consequences by the way?
Thanks in advance!
My question is how I can automatically remove the public_html symlink folder (home/[user]/public_html) when I create a new user.
The reason for this is to prevent mistakes. When there are multiple domains for a single user, this public_html folder will go to the default domain. I want to force our programmers to always use home/[user]/domains/[domain]/public_html.
I've read that when I remove the public_html symlink folder it will break up using server-ip/~[user], how can I automatically make it available through server-ip/[domain]? (by creating a symlink in /var/www/html/[domain])
I can do both of these things manually, but I'm wondering how I can do this automatically when I create a new user. Will removing the public_html symlink have any more consequences by the way?
Thanks in advance!