JustPaste.it

<VirtualHost *:80>


DocumentRoot /var/www/html
ServerName xxxxx

ProxyPass / https://localhost:9002/
ProxyPassReverse / https://localhost:9002/

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://xx.xxxxxxx.xx/$1 [R,L]

 

</VirtualHost>

 

<VirtualHost *:443>

SSLEngine on

ProxyPass / http://localhost:9002/
ProxyPassReverse / http://localhost:9002/

</VirtualHost>