I would like to enable remote access by using my Apache server. I have ssl to the Apache and external access to it already working. An AJP reverse proxy is already running fine.
However, the standard way to setup an reverse proxy does not seem to work for OH1.
Does anyone have a working configuration? Maybe a rewrite rule is needed?
Here is my working apache configuration I use to restrict access to habmin to local network only (as I was unable to make authentification works).
I hope it can help you.
I don’t remember why, but I had no choice to keep openhab in https if my RP is in https.
<VirtualHost *:443>
ProxyPreserveHost on
ProxyRequests off
SSLProxyEngine on
<Location /habmin>
Order deny,allow
Deny from all
Allow from 192.168.0.0/24
ProxyPass https://localhost:8443/habmin
ProxyPassReverse https://localhost:8443/habmin
</Location>
<Location /habmin2>
Order deny,allow
Deny from all
Allow from 192.168.0.0/24
ProxyPass https://localhost:8443/habmin2
ProxyPassReverse https://localhost:8443/habmin2
</Location>
ProxyPass / https://localhost:8443/
ProxyPassReverse / https://localhost:8443/