Linux   « Apache + SSL (HTTPS) | HOME | FTP server - ProFTPD »

 ■ Apache + user directory (http://addresss.com/~user/)

(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?)


投稿者 tomopugh : 2007年03月13日 13:50

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)