1

Topic: Upgrading Roundcube to 1.7.0

Maybe this info will help someone.

After upgrading to Roundcube 1.7.0, before restarting nginx and php-fpm services, it is necessary to alter "/etc/nginx/templates/roundcube.tmpl" to the following:

#
# Roundcube 1.7+ fixed Nginx template
#

#
# Redirect root to /mail/
#
location = / {
    return 301 /mail/;
}

#
# Redirect /mail -> /mail/
#
location = /mail {
    return 301 /mail/;
}

#
# Roundcube front controller
#
location /mail/ {
    alias /opt/www/roundcubemail/public_html/;
    index index.php;

    try_files $uri $uri/ @roundcube;
}

#
# Internal rewrite to index.php
#
location @roundcube {
    rewrite ^ /mail/index.php last;
}

#
# PHP handling
#
location ~ ^/mail/(.+\.php)(/.+)?$ {

    fastcgi_split_path_info ^/mail/(.+\.php)(/.+)$;

    include /etc/nginx/templates/hsts.tmpl;
    include /etc/nginx/templates/fastcgi_php.tmpl;

    fastcgi_param SCRIPT_FILENAME /opt/www/roundcubemail/public_html/$1;
    fastcgi_param PATH_INFO $fastcgi_path_info;
}

This works for me, but if there is a better or more elegant solution, please post it.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrading Roundcube to 1.7.0

This is a working sample Nginx config:
https://github.com/iredmail/iRedMail/co … b8f67e50ca

I will release iRedMail-1.8.1 shortly with detailed upgrade tutorial, so that you guys don't need to go through this pain.

3

Re: Upgrading Roundcube to 1.7.0

DRAFT upgrade tutorial:
https://docs.iredmail.org/upgrade.iredm … 1.8.1.html