Advertisement
fweng322

proxyserver-conference.la.config

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