Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./bin/upsource.sh configure --listen-port 1111 --base-url http://127.0.0.1:1111
- <VirtualHost EXTERNAL_IP_ADDRESS:80>
- ServerName review.example.com
- DocumentRoot /var/www/vhosts/example.com/review
- RewriteEngine on
- RewriteCond %{SERVER_PORT} 80
- RewriteRule ^(.*)$ https://review.example.com$1 [R,L]
- </VirtualHost>
- <VirtualHost EXTERNAL_IP_ADDRESS:443>
- ServerName review.example.com
- DocumentRoot /var/www/vhosts/example.com/review
- <IfModule mod_ssl.c>
- SSLEngine On
- SSLCertificateFile /etc/letsencrypt/live/review.example.com/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/review.example.com/privkey.pem
- </IfModule>
- ProxyRequests Off
- ProxyPass /~socket.io/ ws://127.0.0.1:1111/~socket.io/ connectiontimeout=240 timeout=1200
- ProxyPassReverse /~socket.io/ ws://127.0.0.1:1111/~socket.io/
- ProxyPass / http://127.0.0.1:1111/
- ProxyPassReverse / http://127.0.0.1:1111/
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateChainFile /etc/letsencrypt/live/review.example.com/chain.pem
- </VirtualHost>
Add Comment
Please, Sign In to add comment