Advertisement
Guest User

https

a guest
Apr 25th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. NameVirtualHost *:80
  2. <VirtualHost *:80>
  3. ServerName mail.shelli.pw
  4. ServerAdmin mtl@shelli.pw
  5. DocumentRoot /var/www/mail
  6. ErrorLog ${APACHE_LOG_DIR}/error.log
  7. CustomLog ${APACHE_LOG_DIR}/access.log combined
  8. Redirect permanent /mail https://mail.shelli.pw/
  9. </VirtualHost>
  10.  
  11. <VirtualHost _default_:443>
  12. ServerName mail.shelli.pw
  13. DocumentRoot /var/www/mail
  14. SSLEngine On
  15. SSLCertificateFile /etc/letsencrypt/live/nix.shelli.pw/fullchain.pem
  16. SSLCertificateKeyFile /etc/letsencrypt/live/nix.shelli.pw/privkey.pem
  17. Include /etc/letsencrypt/options-ssl-apache.conf
  18. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement