Advertisement
Guest User

Untitled

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