apache2 with default port (443)
<VirtualHost proxy.example.com:443>
ServerName proxy.exmaple.com:443
....
RequestHeader set X-Forwarded-HTTPS %{HTTPS}s
ProxyRequests off
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
</VirtualHost>
apache2 with customized port (8443)
<VirtualHost proxy.example.com:8443>
ServerName proxy.exmaple.com:8443
....
RequestHeader set X-Forwarded-HTTPS %{HTTPS}s
ProxyRequests off
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
</VirtualHost>
apache1 (available with P::M::RP 0.08) / you can’t use customized port
<VirtualHost proxy.example.com:443>
ServerName proxy.exmaple.com:443
....
ProxyRequests off
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
</VirtualHost>