40_mod_ssl.conf 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <IfDefine SSL>
  2. <IfModule !mod_ssl.c>
  3. LoadModule ssl_module modules/mod_ssl.so
  4. </IfModule>
  5. </IfDefine>
  6. <IfModule mod_ssl.c>
  7. #
  8. # This is the Apache server configuration file providing SSL support.
  9. # It contains the configuration directives to instruct the server how to
  10. # serve pages over an https connection. For detailing information about these
  11. # directives see <URL:http://httpd.apache.org/docs-2.0/mod/mod_ssl.html>
  12. #
  13. # Do NOT simply read the instructions in here without understanding
  14. # what they do. They're here only as hints or reminders. If you are unsure
  15. # consult the online docs. You have been warned.
  16. #
  17. #
  18. # Pseudo Random Number Generator (PRNG):
  19. # Configure one or more sources to seed the PRNG of the SSL library.
  20. # The seed data should be of good random quality.
  21. # WARNING! On some platforms /dev/random blocks if not enough entropy
  22. # is available. This means you then cannot use the /dev/random device
  23. # because it would lead to very long connection times (as long as
  24. # it requires to make more entropy available). But usually those
  25. # platforms additionally provide a /dev/urandom device which doesn't
  26. # block. So, if available, use this one instead. Read the mod_ssl User
  27. # Manual for more details.
  28. #
  29. # Note: This must come before the <IfDefine SSL> container to support
  30. # starting without SSL on platforms with no /dev/random equivalent
  31. # but a statically compiled-in mod_ssl.
  32. #
  33. SSLRandomSeed startup builtin
  34. SSLRandomSeed connect builtin
  35. #SSLRandomSeed startup file:/dev/random 512
  36. #SSLRandomSeed startup file:/dev/urandom 512
  37. #SSLRandomSeed connect file:/dev/random 512
  38. #SSLRandomSeed connect file:/dev/urandom 512
  39. #
  40. # When we also provide SSL we have to listen to the
  41. # standard HTTP port (see above) and to the HTTPS port
  42. #
  43. Listen 443
  44. ##
  45. ## SSL Global Context
  46. ##
  47. ## All SSL configuration in this context applies both to
  48. ## the main server and all SSL-enabled virtual hosts.
  49. ##
  50. #
  51. # Some MIME-types for downloading Certificates and CRLs
  52. #
  53. <IfModule mod_mime.c>
  54. AddType application/x-x509-ca-cert .crt
  55. AddType application/x-pkcs7-crl .crl
  56. </IfModule>
  57. # Pass Phrase Dialog:
  58. # Configure the pass phrase gathering process.
  59. # The filtering dialog program (`builtin' is a internal
  60. # terminal dialog) has to provide the pass phrase on stdout.
  61. SSLPassPhraseDialog builtin
  62. # Inter-Process Session Cache:
  63. # Configure the SSL Session Cache: First the mechanism
  64. # to use and second the expiring timeout (in seconds).
  65. #SSLSessionCache none
  66. #SSLSessionCache shmht:logs/ssl_scache(512000)
  67. #SSLSessionCache shmcb:logs/ssl_scache(512000)
  68. #SSLSessionCache dbm:/var/cache/apache2/ssl_scache
  69. SSLSessionCache shm:/var/cache/apache2/ssl_scache(512000)
  70. SSLSessionCacheTimeout 300
  71. # Semaphore:
  72. # Configure the path to the mutual exclusion semaphore the
  73. # SSL engine uses internally for inter-process synchronization.
  74. SSLMutex file:/var/cache/apache2/ssl_mutex
  75. </IfModule>