api.conf.in 6.5 KB

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