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.