Page 1 of 1

Domoticz with Proxy change with 2024-05 / 06 ?

Posted: Tuesday 09 July 2024 8:31
by sirus
Hey folks !

I just did the update from 2024.4 to 2024.5 and then to 2024.6 and I have issue to acces domoticz behind my apache proxy.
I dit a test to rollback to 2024.4 and the acces sis workgin fine after the rollback.
Is there any reason for a behavioure change using a proxy ?
There is not authentification needed on Domototicz itself the authentification is done at proxy level on my case .

Version: 2024-06
Platform: Linux / Raspberry with Apache2 as proxy

The proxy is set with :

Code: Select all

    <Proxy *>
        AuthType Basic
        AuthName "Protected Intranet Proxy"
        AuthBasicProvider file
        AuthUserFile "<mypasswd file>"
        
        <RequireAny>
            Require valid-user
            Require ip 192.168.1.0/24
        </RequireAny>
    </Proxy>
    
    ProxyPreserveHost On
    ProxyRequests Off
    
    # ProxyPass/Reverse directives
    <Location "/domo/json">
        ProxyPass "ws://pi3:8080/json"
    </Location>
    
    ProxyPass /domo/ http://pi3:8080/
    ProxyPassReverse /domo/ http://pi3:8080/
    
    ProxyPass /wiki/ http://pi3:80/wiki/ 
    ProxyPassReverse /wiki/ http://pi3:80/wiki/

Only acces of domoticz is affected and only from the internet, local access using proxy is working fine.

Re: Domoticz with Proxy change with 2024-05 / 06 ?

Posted: Wednesday 10 July 2024 14:26
by sirus
Hello,

I will reply to myself in case others have same issue.
In the security board, in addition to fill the network trusted with your proxy IP, you must allow Basic-Auth here :

Image

Regards !

Re: Domoticz with Proxy change with 2024-05 / 06 ?

Posted: Wednesday 10 July 2024 23:58
by waltervl
See also the webserver proxy wiki page https://www.domoticz.com/wiki/WebServer_Proxy