Re: [users@httpd] Reverse proxy: redirect variable by user
Hi Nick, > Otherwise, it would be pretty trivial to implement as a > custom module. Okay, I will have a look at. I assume that is the starting point to use: https://httpd.apache.org/docs/2.4/developer/modguide.html >> * 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. What won't work? Let's assume all but a special location (e.g. /control) is proied. The special location is handled locally. This location could contain the login formular and CGI scripts. The example "https://httpd.apache.org/docs/2.4/mod/mod_session.html#basicexamples"; seems that it is possible to inject variables. But I assume you would point me that the server behing the proxy cannot inject session variables to the session handled by HTTPD. Correct? Best regards, Markus - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Reverse proxy: redirect variable by user
Hi, I would like to realize an idea using the Apache HTTP Server project. As I am a beginner at this topic, it would be great if you could give me some help. If my reading is correct it should be possible at all. Short summary: It should be a reverse proxy that choose the redirect target URL by the logged in user * If a connection is made to the server (and the user is not logged it), he needs to fill out a formular and give some informations (identifier, username, password). I assume this could be realized by "AuthType form", session, ... (perhaps database lookup using a CGI script) * 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?). * If the user is logged in every request should be proxied to another web server (proxy, redirect [P]) and the host and port information should be used for. e.g. http://${HOST}:${PORT}/ * At least this should be work for WebSockets, too. Do you think this is possible? Can you help me with the configuration? Best regards, Markus - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org