Domoticz with Proxy change with 2024-05 / 06 ? Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
sirus
Posts: 6
Joined: Thursday 15 January 2015 13:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2286
Location: France
Contact:

Domoticz with Proxy change with 2024-05 / 06 ?

Post 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.
Raspberry / Domoticz / RFXtrx433E / multiple home made devises
My blog for domoticz / electronics stuff : domotique.web2diz.net
User avatar
sirus
Posts: 6
Joined: Thursday 15 January 2015 13:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2286
Location: France
Contact:

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

Post 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 !
Raspberry / Domoticz / RFXtrx433E / multiple home made devises
My blog for domoticz / electronics stuff : domotique.web2diz.net
User avatar
waltervl
Posts: 5791
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

See also the webserver proxy wiki page https://www.domoticz.com/wiki/WebServer_Proxy
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest