Page 1 of 1

Domoticz and Apache

Posted: Tuesday 01 November 2016 17:47
by hanryz
Dear all,

I am currently using Domoticz with Apache server which is configured as a reverse proxy and handles the requests from the internet on port 80 and passes them to port 8080 of the Domoticz server. Both servers, the Domoticz and Apache are running on the same PC (Windows 7 64 bit) with a single Network card.

Naturally, because the two internal servers are within the same IP range, the Domoticz cannot differentiate that a request passed from Apache comes actually from the internet and not from my intranet, which, in case the "no login" option for the internal IP range is active in Domoticz, leads to opening of the Domoticz interface to the rest of the world without asking to log in. You do not need to be a hacker to control my home then:)

So, I had to de-select the option "no login" for the intranet.

May be somebody knows a way how to configure Apache such that the requests it passes to Domoticz can be identified by Domoticz as external (internet) requests?

Thanks in advance any hint.
Henry.

Re: Domoticz and Apache

Posted: Tuesday 01 November 2016 18:04
by sijones
I would have thought if you configure apache to connect to 127.0.0.1:8080 and then whitelist your network subnet, it then should work with the no login option.

Re: Domoticz and Apache

Posted: Tuesday 01 November 2016 23:21
by hanryz
Thanks, that worked somehow.