Proxy needs to rewrite parameters in QueryString

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

 



Hi!

I've got a webapplication that the login functionality is placed on one server, and the application is running on three other server (sort of loadbalancing). A parameter on a successfull login tells which backendserver that should handle the requests. Everything
is placed behind a frontend that is acting as a proxy.

I'm running Apache on the frontend and the procy is configured according to;

ProxyPass /Login/ http://login.internal.com
ProxyPassReverse /Login/ http://login.internal.com
ProxyPass /backend1/ http://backend1.internal.com
ProxyPassReverse /backend1/ http://backend1.internal.com
ProxyPass /backend2/ http://backend2.internal.com
ProxyPassReverse /backend2/ http://backend2.internal.com
ProxyPass /backend3/ http://backend3.internal.com
ProxyPassReverse /backend3/ http://backend3.internal.com

A succefull LoginRequest is redirected by the Location-header
Location: http://login.internal.com?LoginSuccess?servername=http://backend1.internal.com

I need to rewrite "servername=http://backend1.internal.com"; to
"servername=http://frontend.external.com/backend1";

I've tried to use Rewrite rules (from mod_rewrite) and ProxyHTMLURLMap (from
mod_proxy_html), but without success.

Any ideas on how to solve it?

/Andreas

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-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