Domoticz and Apache

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
hanryz
Posts: 27
Joined: Monday 31 October 2016 23:18
Target OS: Windows
Domoticz version: 3.5837
Location: Netherlands
Contact:

Domoticz and Apache

Post 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.
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Domoticz and Apache

Post 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.
hanryz
Posts: 27
Joined: Monday 31 October 2016 23:18
Target OS: Windows
Domoticz version: 3.5837
Location: Netherlands
Contact:

Re: Domoticz and Apache

Post by hanryz »

Thanks, that worked somehow.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest