Advertisement
bremenpl

default ssl 2

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