httpd.conf中的部分信息:
DocumentRoot "/var/web"
<Directory "/var/web">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
在/var/web目录下执行ls -l的结果
-rwxrwxrwx. 1 apache root 22 9月 22 22:28 index2.php
-rwxrwxrwx. 1 apache root 22 9月 22 22:44 info.php
可在浏览器上http://localhost/index2.php能正确显示,而http://localhost/info.php却显示403
Forbidden
You don't have permission to access /info.php on this server.
纠结了一天啊有木有!Help ! !
DocumentRoot "/var/web"
<Directory "/var/web">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
在/var/web目录下执行ls -l的结果
-rwxrwxrwx. 1 apache root 22 9月 22 22:28 index2.php
-rwxrwxrwx. 1 apache root 22 9月 22 22:44 info.php
可在浏览器上http://localhost/index2.php能正确显示,而http://localhost/info.php却显示403
Forbidden
You don't have permission to access /info.php on this server.
纠结了一天啊有木有!Help ! !