Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3. ServerAdmin webmaster@localhost
  4. ServerName mywebsite
  5.  
  6. DocumentRoot /var/www/html
  7.  
  8. ErrorLog ${APACHE_LOG_DIR}/error.log
  9. CustomLog ${APACHE_LOG_DIR}/access.log combined
  10. SSLEngine on
  11.  
  12. SSLCertificateFile /etc/letsencrypt/live/mywebsite.com/fullchain.pem
  13. SSLCertificateKeyFile /etc/letsencrypt/live/mywebsite.com/privkey.pem
  14. SSLCertificateChainFile /etc/letsencrypt/live/mywebsite.com/chain.pem
  15.  
  16. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  17. SSLOptions +StdEnvVars
  18. </FilesMatch>
  19. <Directory /usr/lib/cgi-bin>
  20. SSLOptions +StdEnvVars
  21. </Directory>
  22.  
  23. </VirtualHost>
  24. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement