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.
 
 
 
 
 
 

141 lines
6.4 KiB

  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3. ServerAdmin webmaster@localhost
  4. ServerName {{ ispmail_webmail_hostname }}
  5. #DocumentRoot /var/www/html
  6. Include /etc/roundcube/apache.conf
  7. Alias /roundcube /var/lib/roundcube
  8. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  9. # error, crit, alert, emerg.
  10. # It is also possible to configure the loglevel for particular
  11. # modules, e.g.
  12. #LogLevel info ssl:warn
  13. ErrorLog ${APACHE_LOG_DIR}/webmail.error.log
  14. CustomLog ${APACHE_LOG_DIR}/webmail.access.log combined
  15. # For most configuration files from conf-available/, which are
  16. # enabled or disabled at a global level, it is possible to
  17. # include a line for only one particular virtual host. For example the
  18. # following line enables the CGI configuration for this host only
  19. # after it has been globally disabled with "a2disconf".
  20. #Include conf-available/serve-cgi-bin.conf
  21. # SSL Engine Switch:
  22. # Enable/Disable SSL for this virtual host.
  23. SSLEngine on
  24. # A self-signed (snakeoil) certificate can be created by installing
  25. # the ssl-cert package. See
  26. # /usr/share/doc/apache2/README.Debian.gz for more info.
  27. # If both key and certificate are stored in the same file, only the
  28. # SSLCertificateFile directive is needed.
  29. SSLCertificateFile /etc/ssl/certs/mailserver.pem
  30. SSLCertificateKeyFile /etc/ssl/private/mailserver.pem
  31. # Server Certificate Chain:
  32. # Point SSLCertificateChainFile at a file containing the
  33. # concatenation of PEM encoded CA certificates which form the
  34. # certificate chain for the server certificate. Alternatively
  35. # the referenced file can be the same as SSLCertificateFile
  36. # when the CA certificates are directly appended to the server
  37. # certificate for convinience.
  38. #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
  39. # Certificate Authority (CA):
  40. # Set the CA certificate verification path where to find CA
  41. # certificates for client authentication or alternatively one
  42. # huge file containing all of them (file must be PEM encoded)
  43. # Note: Inside SSLCACertificatePath you need hash symlinks
  44. # to point to the certificate files. Use the provided
  45. # Makefile to update the hash symlinks after changes.
  46. #SSLCACertificatePath /etc/ssl/certs/
  47. #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
  48. # Certificate Revocation Lists (CRL):
  49. # Set the CA revocation path where to find CA CRLs for client
  50. # authentication or alternatively one huge file containing all
  51. # of them (file must be PEM encoded)
  52. # Note: Inside SSLCARevocationPath you need hash symlinks
  53. # to point to the certificate files. Use the provided
  54. # Makefile to update the hash symlinks after changes.
  55. #SSLCARevocationPath /etc/apache2/ssl.crl/
  56. #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
  57. # Client Authentication (Type):
  58. # Client certificate verification type and depth. Types are
  59. # none, optional, require and optional_no_ca. Depth is a
  60. # number which specifies how deeply to verify the certificate
  61. # issuer chain before deciding the certificate is not valid.
  62. #SSLVerifyClient require
  63. #SSLVerifyDepth 10
  64. # SSL Engine Options:
  65. # Set various options for the SSL engine.
  66. # o FakeBasicAuth:
  67. # Translate the client X.509 into a Basic Authorisation. This means that
  68. # the standard Auth/DBMAuth methods can be used for access control. The
  69. # user name is the `one line' version of the client's X.509 certificate.
  70. # Note that no password is obtained from the user. Every entry in the user
  71. # file needs this password: `xxj31ZMTZzkVA'.
  72. # o ExportCertData:
  73. # This exports two additional environment variables: SSL_CLIENT_CERT and
  74. # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
  75. # server (always existing) and the client (only existing when client
  76. # authentication is used). This can be used to import the certificates
  77. # into CGI scripts.
  78. # o StdEnvVars:
  79. # This exports the standard SSL/TLS related `SSL_*' environment variables.
  80. # Per default this exportation is switched off for performance reasons,
  81. # because the extraction step is an expensive operation and is usually
  82. # useless for serving static content. So one usually enables the
  83. # exportation for CGI and SSI requests only.
  84. # o OptRenegotiate:
  85. # This enables optimized SSL connection renegotiation handling when SSL
  86. # directives are used in per-directory context.
  87. #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  88. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  89. SSLOptions +StdEnvVars
  90. </FilesMatch>
  91. <Directory /usr/lib/cgi-bin>
  92. SSLOptions +StdEnvVars
  93. </Directory>
  94. # SSL Protocol Adjustments:
  95. # The safe and default but still SSL/TLS standard compliant shutdown
  96. # approach is that mod_ssl sends the close notify alert but doesn't wait for
  97. # the close notify alert from client. When you need a different shutdown
  98. # approach you can use one of the following variables:
  99. # o ssl-unclean-shutdown:
  100. # This forces an unclean shutdown when the connection is closed, i.e. no
  101. # SSL close notify alert is send or allowed to received. This violates
  102. # the SSL/TLS standard but is needed for some brain-dead browsers. Use
  103. # this when you receive I/O errors because of the standard approach where
  104. # mod_ssl sends the close notify alert.
  105. # o ssl-accurate-shutdown:
  106. # This forces an accurate shutdown when the connection is closed, i.e. a
  107. # SSL close notify alert is send and mod_ssl waits for the close notify
  108. # alert of the client. This is 100% SSL/TLS standard compliant, but in
  109. # practice often causes hanging connections with brain-dead browsers. Use
  110. # this only for browsers where you know that their SSL implementation
  111. # works correctly.
  112. # Notice: Most problems of broken clients are also related to the HTTP
  113. # keep-alive facility, so you usually additionally want to disable
  114. # keep-alive for those clients, too. Use variable "nokeepalive" for this.
  115. # Similarly, one has to force some clients to use HTTP/1.0 to workaround
  116. # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
  117. # "force-response-1.0" for this.
  118. BrowserMatch "MSIE [2-6]" \
  119. nokeepalive ssl-unclean-shutdown \
  120. downgrade-1.0 force-response-1.0
  121. # MSIE 7 and newer should be able to use keepalive
  122. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  123. </VirtualHost>
  124. </IfModule>
  125. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet