Linux « Apache + SSL (HTTPS) | HOME | FTP server - ProFTPD »
(Cent OS 4.4)
Each user's homepage
http://addresss.com/~user/
# nano /etc/httpd/conf/httpd.conf
<IfModule mod_userdir.c>
UserDir disable
↓
#UserDir disable (Comment out)
#UserDir public_html
↓
UserDir ftp/html
</IfModule>
#<Directory /home/*/public_html> (commnet out below all)
# 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>
<Directory /home/*/ftp/html> (add below)
AllowOverride All (allow .htaccess)
Options IncludesNoExec ExecCGI FollowSymLinks Indexes(allow CGI,SSI)
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Then restart httpd.
User's www directory must be /home/user/ftp/html/
Permission is 755 for user home directory. (or 711?)

