Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

centos - 403 Forbidden for apache roundcube on CentOS8

Dear I have installed apache roundcube on centos8. Below is my virtual host setting.

<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>

I have add ssl certificate with certbot.

sudo certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email [email protected] -d mail.mydomain.com

And finally, adding some permission.

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

Then call installer from url.

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

But I have 403 error message return.

You don't have permission to access this resource.

Any advice or guidance to override somewhere on this would be greatly appreciated, Thanks.

question from:https://stackoverflow.com/questions/65650475/403-forbidden-for-apache-roundcube-on-centos8

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...