Hi all!
in my system i have five OpenWRT routers. The overall site has a remote-accessible control page (safely protected behind SSL + strong two factor authentication). On this remote control page i can access all the services and many web control pages.
I have an NGINX configured with reverse provxy on all the internal services which are published.
For all the services (webcams, heating control, mechanical pumps and systems and such) i have dedicated web pages which are easily accessed using the NGIX reverse proxy.
I would like to access also the five LUCI web pages, so that i can check on the wireless and wired network easily too, from one single point.
I cannot.
On NGINX i have the following setup:
location /OpenWRT-1/ {
proxy_pass http://192.168.1.2/;
proxy_redirect / $scheme://$host:$server_port/OpenWRT-1/;
proxy_set_header Accept-Encoding "";
gunzip on;
sub_filter "src=\"/" "src=\"/OpenWRT-1/";
sub_filter "href=\"/" "href=\"/OpenWRT-1/";
sub_filter "action=\"/" "action=\"/OpenWRT-1/";
sub_filter_once off;
sub_filter_types *;
}
This was working for a Netgear web-gui, but for luci, it does not.
I can see the login page fine, but then a red bar on top appears with the following error:
"Error No related RPC reply"
The login does not work.
The failing request seems to be the following one:
https://<my server>/cgi-bin/luci/admin/ubus?1605686821774
Which is incorrect, it should instead be like this one:
https://<my server>/OpenWRT-1/cgi-bin/luci/admin/translations/en?v=git-20.247.75781-0d0ab01
See the missing "OpenWRT-1" part in the address of the first one? That's the issue.
Does luci has any way to configure the base uri?
Or does anybody knows how to properly redirect also these URLs?
thank you