I have question about VHOST. Suppose I have 2 sites(named
siteA &
siteB), I want to put them in
/home/allsites/siteA &
/home/allsites/siteB inside each folder(
siteA &
siteB), I create 2 folders
html and
log. The
html is the DocumentRoot and the
error_log is where I store
log file. Therfore, the
httpd.conf configuration for virtual host will look like:
Code:
<VirtualHost *>
DocumentRoot /home/allsites/siteA/html
ServerName siteA.com
ServerAlias www.siteA.com
ErrorLog home/allsites/siteA/log/error_log
</VirtualHost>
<VirtualHost *>
DocumentRoot /home/allsites/siteB/html
ServerName siteB.com
ServerAlias www.siteB.com
ErrorLog home/allsites/siteB/log/error_log
</VirtualHost>
Now, I create 2 account
userA for
siteA and
userB for
siteB and they both have FTP access to their own site (
/home/allsites/siteA &
/home/allsites/siteB). I want userA & userB
can only access to their site and they can not use any "hack script"(I mean *.php script) to access other directories or other sites which are on the same server. How do I setup
httpd.conf file to do that job?
Thank you