Advertisement
Guest User

Untitled

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