我使用的是PHP7.0.5和Apache2.4.20,我想运行Squirrelmail。
当我尝试访问任何squirrelmail页面时,比如HostName/squirrelmail、HostName/s情when /src/login.php或HostName/squirrelmail/src/configtest.php等,我都会得到一个403禁止的错误。
在我的httpd.conf中有:
Alias /squirrelmail /usr/local/squirrelmail/www
<Directory /usr/local/squirrelmail/www>
Options None
AllowOverride None
DirectoryIndex index.php
Order Allow,Deny
Allow from all
</Directory>发布于 2018-03-13 05:56:38
这是由于httpd 2.4访问控制与以前的版本不同,解决方案如下
命令允许,拒绝所有人允许
应改为:
要求所有的批准
然后重新启动httpd
systemctl重新启动httpd
发布于 2018-09-22 17:14:00
为了解决这个问题,您必须检查Apache的日志,在centos 7中,日志将分为两种方式:
/var/log/httpd/error_log或
/var/log/httpd/ssl_error_log一般情况下,Apache 文件中的vhost.conf必须包含以下行:
Alias /webmail /usr/share/squirrelmail
<Directory "/usr/share/squirrelmail">
Options Indexes MultiViews
Require all granted
AllowOverride none
Order allow,deny
Allow from all
Options +SymLinksIfOwnerMatch
DirectoryIndex index.php index.html index.htm
</Directory>https://stackoverflow.com/questions/38144934
复制相似问题