Advertisement
Guest User

virtualhostssl

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