Advertisement
Guest User

Untitled

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