service configuration files that needs to be saved just incase the server got lost someday by the cloud provider.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

179 lines
8.0KB

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