Author Topic: Apache virtual host configuration for Roundcube  (Read 2012 times)

Offline kikinovak

  • Newbie
  • *
  • Posts: 6
Apache virtual host configuration for Roundcube
« on: December 09, 2019, 03:16:19 AM »
Hi,

The official documentation is a bit laconic about virtual host configuration.

I have a vanilla Roundcube 1.4.1 installation on my sandbox server for testing purposes, and here's the corresponding virtual host configuration.

Code: [Select]
# /etc/httpd/conf.d/10-mail.slackbox.fr-ssl.conf

# http://mail.slackbox.fr -> https://mail.slackbox.fr
<VirtualHost *:80>
  ServerName mail.slackbox.fr
  Redirect / https://mail.slackbox.fr
</VirtualHost>

# https://mail.slackbox.fr
<VirtualHost _default_:443>
  Header always set X-Frame-Options "SAMEORIGIN"
  ServerAdmin info@microlinux.fr
  DocumentRoot "/var/www/slackbox-mail/html"
  <Directory "/var/www/slackbox-mail/html">
    Options +FollowSymlinks
    AllowOverride All
  </Directory>
  ServerName mail.slackbox.fr:443
  ServerAlias slackbox.fr
  SSLEngine on
  SSLCertificateFile /etc/letsencrypt/live/sd-100246.dedibox.fr/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/sd-100246.dedibox.fr/privkey.pem
  SSLCertificateChainFile /etc/letsencrypt/live/sd-100246.dedibox.fr/fullchain.pem
  BrowserMatch "MSIE [2-5]" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
  ErrorLog logs/mail.slackbox.fr-error_log
  CustomLog logs/mail.slackbox.fr-access_log common
</VirtualHost>

Any comments and/or suggestions ?

Cheers from the sunny South of France.