|
配置个人网站的问题 (虚拟机linux )
<IfModule mod_userdir.c>
UserDir disable root
UserDir public_html
</IfModule>
<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>
su - user1
cd /
mkdir public_html
cd ..
chmod 711 user1
cd ~/public_html
echo jaskdlfj > index.html
windows xp(ie)
192.168.1.4/~user1
出现如下错误!
Forbidden
You don't have permission to access /~user1 on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.52 (Red Hat) Server at 192.168.1.4 Port 80 |
|