Re: Reverse proxy: redirect variable by user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 11 Feb 2017 11:48:30 +0100
Markus Rathgeb <maggu2810@xxxxxxxxx> wrote:

> Short summary: It should be a reverse proxy that choose the redirect
> target URL by the logged in user

You can test REMOTE_USER in an <If> section or a RewriteRule.
With the latter, you can use it as a backreference with [P].
A RewriteMap could serve more complex mapping rules, but I
couldn't say in the abstract whether that approach would serve you.

Otherwise, it would be pretty trivial to implement as a
custom module.

> * Dependend on the identifier (if logged in successfull) a host and
> port should be chossen. I assume this could be realized by a simple
> CGI script that (e.g. look into an database) and set host and port
> session variables. That session variables should be visible (readable
> / writable) by the server only (mod_session_dbd?).

That won't work.  A CGI request is not a Proxy request.  They are
separate backends to the server.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux