403 Forbidden for apache roundcube on CentOS8

问题描述

亲爱的,我已经在 centos8 上安装了 apache roundcube。下面是我的虚拟主机设置。

<VirtualHost *:80>
  ServerName mail.mydomainname.com
  DocumentRoot /var/www/html/webmail/
  ErrorLog /var/log/httpd/roundcube_error.log
  CustomLog /var/log/httpd/roundcube_access.log combined
  <Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>
  <Directory /var/www/html/webmail/>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

我已经用 certbot 添加了 ssl 证书。

sudo certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email test1@mydomain.com -d mail.mydomain.com

最后,添加一些权限。

sudo chcon -t httpd_sys_content_t /var/www/html/webmail/ -R
sudo chcon -t httpd_sys_rw_content_t /var/www/html/webmail/temp/ /var/www/html/webmail/logs/ -R
sudo setfacl -R -m u:apache:rwx /var/www/html/webmail/temp/ /var/www/html/webmail/logs/
sudo setsebool -P httpd_can_network_connect
sudo systemctl restart httpd

然后从 url 调用安装程序。

https://mail.mydomain.com/webmail/installer

但是我返回了 403 错误消息。

您无权访问此资源。

不胜感激任何建议或指导以覆盖某处,谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...