Add vhost support for Roundcube webmail
joglomedia opened this issue · comments
Introduction
Roundcube is a web-based IMAP email client. Roundcube's most prominent feature is the pervasive use of Ajax technology.
Official download site
https://roundcube.net/download/
Current latest version
https://github.com/roundcube/roundcubemail/releases
Installation
https://wiki.archlinux.org/index.php/Roundcube#Webserver_(Nginx)
https://www.linuxbabe.com/mail-server/install-roundcube-webmail-ubuntu-16-04-nginx-mariadb-php7
Sample Nginx directive
location / {
try_files $uri $uri/ /index.php;
}
location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
deny all;
}
location ~ ^/(bin|SQL)/ {
deny all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /.well-known/acme-challenge {
allow all;
}