/
/
The error 403 or 404 while using Roundcube in ispmanager 6 with CentOS 7

The error 403 or 404 while using Roundcube in ispmanager 6 with CentOS 7

Symptoms

Roundcube returns the error 403 or 404 while using Roundcube in ispmanager 6 with CentOS 7 after update the Nginx configuration.

Causes

There are extra / symbols in the Nginx configuration for Roundcube.

Solution

Remove extra / symbols right after "roundcube" in the Nginx configuration for Roundcube at etc/nginx/vhosts-includes/roundcube.conf in following strings:

  • location /roundcube/
  • location ~ ^/roundcube//(.+\.php)$

 

The example of the standard correct configuration:

location /roundcube {
 alias /usr/share/roundcubemail;
 index index.php;
}
location ~ ^/roundcube/(.+\.php)$ {
 alias /usr/share/roundcubemail/$1;
 ...
}

 

NOTE THAT!

  • The standard configuration is applied after Nginx update. If you did some manual changes to the configuration file, you can find all changes in /etc/nginx/vhosts-includes/roundcube.conf/rpmsave.
  • Since Roundcube uses PHP 7.4, no forwarding to Apache needed.
  • If you use Roundcube 1.3 or earlier, update it up to 1.4 with the command yum update, otherwise use previous configuration file.

In this article