1. <IfModule mod_ssl.c>
  2. <VirtualHost *:443>
  3. ServerAdmin [email protected]
  4. ServerName bosh.galex-713.eu
  5. DocumentRoot /srv/www
  6. <Directory />
  7. Options FollowSymLinks
  8. LanguagePriority en fr it es la eo vo ar he
  9. ForceLanguagePriority Fallback
  10. AllowOverride None
  11. </Directory>
  12. <Directory /srv/www>
  13. Options FollowSymLinks MultiViews
  14. LanguagePriority en fr it es la eo vo ar he
  15. ForceLanguagePriority Fallback
  16. AllowOverride None
  17. Order allow,deny
  18. allow from all
  19. </Directory>
  20. <Location /http-bind>
  21. Order allow,deny
  22. Allow from all
  23. </Location>
  24. RewriteEngine On
  25. RewriteRule ^/http-bind$ https://bosh.galex-713.eu:5281/http-bind [P,L]
  26. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  27. <Directory "/usr/lib/cgi-bin">
  28. AllowOverride None
  29. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  30. Order allow,deny
  31. Allow from all
  32. </Directory>
  33. ErrorLog ${APACHE_LOG_DIR}/error.log
  34. # Possible values include: debug, info, notice, warn, error, crit,
  35. # alert, emerg.
  36. LogLevel warn
  37. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  38. # SSL Engine Switch:
  39. # Enable/Disable SSL for this virtual host.
  40. SSLEngine on
  41. # A self-signed (snakeoil) certificate can be created by installing
  42. # the ssl-cert package. See
  43. # /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
  44. # If both key and certificate are stored in the same file, only the
  45. # SSLCertificateFile directive is needed.
  46. SSLCertificateFile /etc/ssl/certs/bosh.galex-713.eu.pem
  47. SSLCertificateKeyFile /etc/ssl/private/bosh.galex-713.eu.key
  48. # Server Certificate Chain:
  49. # Point SSLCertificateChainFile at a file containing the
  50. # concatenation of PEM encoded CA certificates which form the
  51. # certificate chain for the server certificate. Alternatively
  52. # the referenced file can be the same as SSLCertificateFile
  53. # when the CA certificates are directly appended to the server
  54. # certificate for convinience.
  55. #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
  56. # Certificate Authority (CA):
  57. # Set the CA certificate verification path where to find CA
  58. # certificates for client authentication or alternatively one
  59. # huge file containing all of them (file must be PEM encoded)
  60. # Note: Inside SSLCACertificatePath you need hash symlinks
  61. # to point to the certificate files. Use the provided
  62. # Makefile to update the hash symlinks after changes.
  63. #SSLCACertificatePath /etc/ssl/certs/
  64. #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
  65. # Certificate Revocation Lists (CRL):
  66. # Set the CA revocation path where to find CA CRLs for client
  67. # authentication or alternatively one huge file containing all
  68. # of them (file must be PEM encoded)
  69. # Note: Inside SSLCARevocationPath you need hash symlinks
  70. # to point to the certificate files. Use the provided
  71. # Makefile to update the hash symlinks after changes.
  72. #SSLCARevocationPath /etc/apache2/ssl.crl/
  73. #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
  74. # Client Authentication (Type):
  75. # Client certificate verification type and depth. Types are
  76. # none, optional, require and optional_no_ca. Depth is a
  77. # number which specifies how deeply to verify the certificate
  78. # issuer chain before deciding the certificate is not valid.
  79. #SSLVerifyClient require
  80. #SSLVerifyDepth 10
  81. # Access Control:
  82. # With SSLRequire you can do per-directory access control based
  83. # on arbitrary complex boolean expressions containing server
  84. # variable checks and other lookup directives. The syntax is a
  85. # mixture between C and Perl. See the mod_ssl documentation
  86. # for more details.
  87. #<Location />
  88. #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
  89. # and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
  90. # and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
  91. # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
  92. # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
  93. # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
  94. #</Location>
  95. # SSL Engine Options:
  96. # Set various options for the SSL engine.
  97. # o FakeBasicAuth:
  98. # Translate the client X.509 into a Basic Authorisation. This means that
  99. # the standard Auth/DBMAuth methods can be used for access control. The
  100. # user name is the `one line' version of the client's X.509 certificate.
  101. # Note that no password is obtained from the user. Every entry in the user
  102. # file needs this password: `xxj31ZMTZzkVA'.
  103. # o ExportCertData:
  104. # This exports two additional environment variables: SSL_CLIENT_CERT and
  105. # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
  106. # server (always existing) and the client (only existing when client
  107. # authentication is used). This can be used to import the certificates
  108. # into CGI scripts.
  109. # o StdEnvVars:
  110. # This exports the standard SSL/TLS related `SSL_*' environment variables.
  111. # Per default this exportation is switched off for performance reasons,
  112. # because the extraction step is an expensive operation and is usually
  113. # useless for serving static content. So one usually enables the
  114. # exportation for CGI and SSI requests only.
  115. # o StrictRequire:
  116. # This denies access when "SSLRequireSSL" or "SSLRequire" applied even
  117. # under a "Satisfy any" situation, i.e. when it applies access is denied
  118. # and no other module can change it.
  119. # o OptRenegotiate:
  120. # This enables optimized SSL connection renegotiation handling when SSL
  121. # directives are used in per-directory context.
  122. #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  123. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  124. SSLOptions +StdEnvVars
  125. </FilesMatch>
  126. <Directory /usr/lib/cgi-bin>
  127. SSLOptions +StdEnvVars
  128. </Directory>
  129. # SSL Protocol Adjustments:
  130. # The safe and default but still SSL/TLS standard compliant shutdown
  131. # approach is that mod_ssl sends the close notify alert but doesn't wait for
  132. # the close notify alert from client. When you need a different shutdown
  133. # approach you can use one of the following variables:
  134. # o ssl-unclean-shutdown:
  135. # This forces an unclean shutdown when the connection is closed, i.e. no
  136. # SSL close notify alert is send or allowed to received. This violates
  137. # the SSL/TLS standard but is needed for some brain-dead browsers. Use
  138. # this when you receive I/O errors because of the standard approach where
  139. # mod_ssl sends the close notify alert.
  140. # o ssl-accurate-shutdown:
  141. # This forces an accurate shutdown when the connection is closed, i.e. a
  142. # SSL close notify alert is send and mod_ssl waits for the close notify
  143. # alert of the client. This is 100% SSL/TLS standard compliant, but in
  144. # practice often causes hanging connections with brain-dead browsers. Use
  145. # this only for browsers where you know that their SSL implementation
  146. # works correctly.
  147. # Notice: Most problems of broken clients are also related to the HTTP
  148. # keep-alive facility, so you usually additionally want to disable
  149. # keep-alive for those clients, too. Use variable "nokeepalive" for this.
  150. # Similarly, one has to force some clients to use HTTP/1.0 to workaround
  151. # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
  152. # "force-response-1.0" for this.
  153. BrowserMatch "MSIE [2-6]" \
  154. nokeepalive ssl-unclean-shutdown \
  155. downgrade-1.0 force-response-1.0
  156. # MSIE 7 and newer should be able to use keepalive
  157. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  158. </VirtualHost>
  159. </IfModule>