Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ServerAdmin webmaster@localhost
  3. ServerName newcloud.deymed.com:443
  4.  
  5. Alias /.well-known /var/www/vhosts/letsEncryptVerify/.well-known
  6.  
  7. ErrorLog ${APACHE_LOG_DIR}/newcloud.deymed.com.error.log
  8.  
  9. SSLEngine on
  10. SSLCertificateFile /etc/letsencrypt/live/newcloud.deymed.com/cert.pem
  11. SSLCertificateKeyFile /etc/letsencrypt/live/newcloud.deymed.com/privkey.pem
  12. Include /etc/letsencrypt/options-ssl-apache.conf
  13. SSLCertificateChainFile /etc/letsencrypt/live/newcloud.deymed.com/chain.pem
  14.  
  15. RewriteEngine on
  16.  
  17. SSLProxyEngine On
  18. ProxyPreserveHost On
  19. ProxyPass /.well-known !
  20. ProxyPass / http://172.16.255.242/
  21. ProxyPassReverse / http://172.16.255.242/
  22. ProxyPassReverseCookiePath / http://172.16.255.242/
  23.  
  24. RequestHeader set X-Forwarded-Proto "https" env=HTTPS
  25.  
  26. </VirtualHost>
  27.  
  28. <VirtualHost *:80>
  29.  
  30. ServerAdmin webmaster@localhost
  31. ServerName newcloud.deymed.com
  32.  
  33. Redirect permanent / https://newcloud.deymed.com/
  34.  
  35. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement