Thanks Gustaf,
As far as I can remember, the multiple servers are to make routing more
convenient.
For example, on port 443 we don't want to proxy /somefolder* to the
backend, but on port 8443 we always want to proxy to a backend.
Plus, /tcl* requests on port 443 would be proxied to a different backend
than 8443.
So this is difficult to express using ns_register_filter commands in a
single server.
Where-as it's quite convenient to:
if { [ns_info server] eq "server1" } {
ns_register_filter preauth GET /tcl*
::revproxy::upstream -target https://${backend1}
} else {
ns_register_filter preauth GET /*
::revproxy::upstream -target https://${backend2}
}
I'm guessing I could be using url_rewrite_callback to achieve this...? I've
not explored that yet but will do now..
On Sun, 20 Dec 2020 at 11:30, Gustaf Neumann <[email protected]> wrote:
>
>
> I am wondering, why you are using multiple servers in your setup. If
> the goal is that the server should listen on multiple ports, wouldn't it
> be better to define for a single server multiple drivers?
>
>
>
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel