Publish web site on users home directory
When you linux administrator. You can allow space to launch own web sites to limited users.
If you want to do that follow these
Create a user
Create a password for user
Create directory in user's home directoery as “ public_html” (without quotes)
(public_html directory must owned by the same user)
Edit following line in "/etc/httpd/conf/httpd.conf" file
#UserDir disable
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
[root@testsrv ~]# chmod 711 /home/ca844
[root@testsrv ~]# chmod 755 /home/ca844/public_html/
No comments:
Post a Comment