mod_rewrite with mod_proxy removes the query string (Apache 2.2.2 - Debian)

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

 



Hello all,

I'm trying to setup a reverse proxy configuration based on query
string rewriting with Apache2, mod_rewrite, mod_proxy (and also
mod_auth_cas, but I don't think it deals with my problem).

The request flow :

browser --> first Apache HTTPD (--> mod_rewrite --> mod_auth_cas -->
mod_rewrite --> mod_proxy) --> second level Apache HTTPD --> ....

When the user has been authenticated with CAS (thus providing a
PROXY_MODAUTHCAS cookie), I want his request to be forwarded to the
second Apache.

But as the mod_auth_cas is trying to intercept the "ticket=...."
parameter in the query string, I have a first rewrite rule to change
the name of the "ticket" parameter to "_pticket_" when it's present,
then a second one to restore the original name before proxying.

Then something weird happens, even if the query string and the whole
request are rewritten, the second Apache server only sees the request
uri, but not the query string.

Am I doing something wrong ?

More detail on my virtualhosts configurations :
http://serverfault.com/questions/664375/apache-2-2-2-debian-mod-rewrite-with-mod-proxy-removes-the-query-string

Regards,

Charles

---------------------------------------------------------------------
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