Forum Moderators: phranque
I've always used FreeBSD and the directory was always like:
/usr/local/www/vhosts
/usr/local/www/vhosts/domain.com/htdocs
Just curious if there is any sort of accepted standard for RedHat or if it is ad-hoc style? ;-) I just want to do it right (clean) since I am starting from scratch on this server.
Thanks!
Are there any security risks of placing them in each users directory?
Also, I'm assuming you would create a user similar to the domain:
/home/domain
Hmmm - though I haven't experienced it yet, it seems like it may get a little crazy in the "/home" directory once I get all the users added plus the vhosts/domains.... any thoughts?
Are there any security risks of placing them in each users directory?
No more than the setup you were previously used to - in effect you were creating user directories under
/usr/local/www/vhosts/. Also, since you can mount /home on a separate partition, your security may be increased, especially if you can lock down the /usr partition. As for the number of directories, there will be no more than in /usr/local/www/vhosts/. Setup may be easier too, with each user having an account created for them, which is their login name. Set their shell to
/bin/false unless you want them to have shell access, then configure your FTPd to login directly into their home directory. In /etc/skel/ you can add public_html, cgi-bin and any other standard directories, and you're all set.