Roundcube
De Banane Atomic
Aller à la navigationAller à la recherche
Links
Configuration
/etc/roundcube/config.inc.php |
// by default: '', the value is asked at login $config['default_host'] = 'domain.fr'; // compose html formatted messages by default // 4 - always, except when replying to plain text message $config['htmleditor'] = 4; |
/etc/hosts |
127.0.0.1 localhost domain.fr ::1 localhost ip6-localhost ip6-loopback domain.fr |
Apache
conf
L'accès au site se fait via cette url http://[server-name]/roundcube |
/etc/apache2/conf-available/roundcube.conf → /etc/roundcube/apache.conf |
/etc/roundcube/apache.conf |
# Those aliases do not work properly with several hosts on your apache server # Uncomment them to use it or adapt them to your configuration Alias /roundcube /var/lib/roundcube <Directory /var/lib/roundcube/> Options +FollowSymLinks # This is needed to parse /var/lib/roundcube/.htaccess. See its # content before setting AllowOverride to None. AllowOverride All <IfVersion >= 2.3> Require all granted </IfVersion> <IfVersion < 2.3> Order allow,deny Allow from all </IfVersion> </Directory> # Protecting basic directories: <Directory /var/lib/roundcube/config> Options -FollowSymLinks AllowOverride None </Directory> <Directory /var/lib/roundcube/temp> Options -FollowSymLinks AllowOverride None <IfVersion >= 2.3> Require all denied </IfVersion> <IfVersion < 2.3> Order allow,deny Deny from all </IfVersion> </Directory> <Directory /var/lib/roundcube/logs> Options -FollowSymLinks AllowOverride None <IfVersion >= 2.3> Require all denied </IfVersion> <IfVersion < 2.3> Order allow,deny Deny from all </IfVersion> </Directory> |
site
Pour utiliser un site plutôt qu'une conf.
# désactiver la conf roundcube sudo a2disconf roundcube # activer le site roundcube sudo a2ensite roundcube |
/etc/apache2/site-available/roundcube.conf |
<VirtualHost *:80> ServerName roundcube.domain.fr Redirect / https://roundcube.domain.fr/ </VirtualHost> <VirtualHost *:443> ServerName roundcube.domain.fr DocumentRoot /var/lib/roundcube SSLCertificateFile /etc/letsencrypt/live/domain.fr/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/domain.fr/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf <FilesMatch "\.php$"> SSLOptions +StdEnvVars </FilesMatch> ErrorLog ${APACHE_LOG_DIR}/roundcube-error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/roundcube-access.log combined <Directory /var/lib/roundcube/> Options +FollowSymLinks # This is needed to parse /var/lib/roundcube/.htaccess. See its # content before setting AllowOverride to None. AllowOverride All Require all granted </Directory> # Protecting basic directories: <Directory /var/lib/roundcube/config> Options -FollowSymLinks AllowOverride None </Directory> <Directory /var/lib/roundcube/temp> Options -FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /var/lib/roundcube/logs> Options -FollowSymLinks AllowOverride None Require all denied </Directory> </VirtualHost> |
Installation
sudo apt install roundcube roundcube-mysql |
Mysql access configuration file /etc/dbconfig-common/roundcube.conf |