I use Apache to serve several sites to the world on my home server on port 443 using an SSL certificate. Last night I installed a linux binary that serves a site only on a port defined via its config file. It is not possible for me to have Apache serve the site directly.
So this site is hosted on http://127.0.0.1:8081/ but I would like to hide it behind Apache over 443 so that I can access it via https://myserver.duckdns.org/webapp/
I have tried this so far in my site config file but it has not worked:
ProxyRequests off
<Proxy *>
allow from all
</Proxy>
RewriteEngine On
RewriteRule ^/(.*) /webapp/$1 [P]
<Location /webapp/>
ProxyPass http://127.0.0.1:8081/
ProxyPassReverse http://127.0.0.1:8081/
</Location>
Any idea how I can do this?
I thought I could do this using ProxyPass and RewriteRules but I cannot seem to get it to work properly.
Thanks so much in advance!