Apache/2.0.52 (CentOS) Server at 192.168.100.113 Port 80
下面是我得设置:
apache:
<IfModule mod_userdir.c>
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>
文件权限:
drwxr-xr-x 6 link link 4096 Jul 1 17:58 link
drwxrwxrwx 2 link link 4096 Jul 4 14:19 public_html
-rwxrwxrwx 1 link link 20 Jul 4 14:19 index.php