No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_roundcube.j2 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <VirtualHost *:80>
  2. ServerName {{ webmail_domain }}
  3. Redirect permanent / https://{{ webmail_domain }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ webmail_domain }}
  7. SSLEngine on
  8. SSLProtocol ALL -SSLv2 -SSLv3
  9. SSLHonorCipherOrder On
  10. SSLCompression off
  11. SSLUseStapling On
  12. SSLStaplingResponderTimeout 5
  13. SSLStaplingReturnResponderErrors off
  14. SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
  15. SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
  16. SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
  17. SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
  18. Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
  19. # Those aliases do not work properly with several hosts on your apache server
  20. # Uncomment them to use it or adapt them to your configuration
  21. # Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
  22. # Alias /roundcube /var/lib/roundcube
  23. # Access to tinymce files
  24. DocumentRoot /var/lib/roundcube
  25. <Directory "/usr/share/tinymce/www/">
  26. Options Indexes MultiViews FollowSymLinks
  27. AllowOverride None
  28. Order allow,deny
  29. allow from all
  30. </Directory>
  31. <Directory /var/lib/roundcube/>
  32. Options +FollowSymLinks
  33. # This is needed to parse /var/lib/roundcube/.htaccess. See its
  34. # content before setting AllowOverride to None.
  35. AllowOverride All
  36. order allow,deny
  37. allow from all
  38. </Directory>
  39. # Protecting basic directories:
  40. <Directory /var/lib/roundcube/config>
  41. Options -FollowSymLinks
  42. AllowOverride None
  43. </Directory>
  44. <Directory /var/lib/roundcube/temp>
  45. Options -FollowSymLinks
  46. AllowOverride None
  47. Order allow,deny
  48. Deny from all
  49. </Directory>
  50. <Directory /var/lib/roundcube/logs>
  51. Options -FollowSymLinks
  52. AllowOverride None
  53. Order allow,deny
  54. Deny from all
  55. </Directory>
  56. CustomLog /var/log/apache2/webmail_access.log combined
  57. ErrorLog /var/log/apache2/webmail_error.log
  58. </VirtualHost>