Advertisement
Guest User

Sample apache vhost ssl config

a guest
Aug 7th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ServerName www.example.com
  3. DocumentRoot "/var/www/html/www.example.com"
  4. ErrorLog logs/ssl_error_log
  5. LogLevel warn
  6. LogFormat "%{Host}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  7. CustomLog logs/ssl_access_log combined
  8.  
  9. SSLEngine on
  10.  
  11. SSLProtocol all -SSLv2 -SSLv3 ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
  12.  
  13. CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  14.  
  15. SSLCertificateFile /etc/letsencrypt/live/www.example.com-0002/fullchain.pem
  16. SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com-0002/privkey.pem
  17. SSLCertificateChainFile /etc/letsencrypt/live/www.example.com-0002/chain.pem
  18. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement