Guest User

Untitled

a guest
Jan 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. ./bin/upsource.sh configure --listen-port 1111 --base-url http://127.0.0.1:1111
  2.  
  3. <VirtualHost EXTERNAL_IP_ADDRESS:80>
  4. ServerName review.example.com
  5.  
  6. DocumentRoot /var/www/vhosts/example.com/review
  7.  
  8. RewriteEngine on
  9. RewriteCond %{SERVER_PORT} 80
  10. RewriteRule ^(.*)$ https://review.example.com$1 [R,L]
  11. </VirtualHost>
  12.  
  13. <VirtualHost EXTERNAL_IP_ADDRESS:443>
  14. ServerName review.example.com
  15.  
  16. DocumentRoot /var/www/vhosts/example.com/review
  17.  
  18. <IfModule mod_ssl.c>
  19. SSLEngine On
  20.  
  21. SSLCertificateFile /etc/letsencrypt/live/review.example.com/cert.pem
  22. SSLCertificateKeyFile /etc/letsencrypt/live/review.example.com/privkey.pem
  23. </IfModule>
  24.  
  25.  
  26. ProxyRequests Off
  27. ProxyPass /~socket.io/ ws://127.0.0.1:1111/~socket.io/ connectiontimeout=240 timeout=1200
  28. ProxyPassReverse /~socket.io/ ws://127.0.0.1:1111/~socket.io/
  29.  
  30. ProxyPass / http://127.0.0.1:1111/
  31. ProxyPassReverse / http://127.0.0.1:1111/
  32.  
  33. Include /etc/letsencrypt/options-ssl-apache.conf
  34. SSLCertificateChainFile /etc/letsencrypt/live/review.example.com/chain.pem
  35. </VirtualHost>
Add Comment
Please, Sign In to add comment