Guest User

Untitled

a guest
Nov 29th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ServerName safe-chatter.ch
  3. ServerAdmin [email protected]
  4.  
  5. # SSL config, requires: a2enmod ssl
  6. SSLEngine on
  7. SSLProxyEngine on
  8.  
  9. # Convos
  10. <Proxy *>
  11. Order allow,deny
  12. Allow from all
  13. </Proxy>
  14.  
  15. ProxyRequests Off
  16. ProxyPreserveHost On
  17. RequestHeader set X-Forwarded-Proto "https"
  18.  
  19. # Pass requests on to Convos
  20. ProxyPass /events ws://localhost:8000/events
  21. ProxyPass / http://localhost:8000/ keepalive=On
  22. ProxyPassReverse / http://localhost:8000/
  23.  
  24. # Letsencrypt certificates
  25. SSLCertificateFile /etc/letsencrypt/live/safe-chatter.ch/fullchain.pem
  26. SSLCertificateKeyFile /etc/letsencrypt/live/safe-chatter.ch/privkey.pem
  27. Include /etc/letsencrypt/options-ssl-apache.conf
  28.  
  29. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment