PDA

View Full Version : .htaccess and mod_proxy


EvoIX_MR2006
09-07-2009, 05:36 PM
Hello.

I am attempting to do a reverse proxy with a site we have that uses a remote web-server. I am trying to maintain a .htaccess file that has a proxy RewriteRule in it. This re-write rule isn't just a simple re-write, it has a few pieces after the $1, for example:

RewriteRule (.*) http://www.thedomain.net/$1?prog_id=something&%{QUERY_STRING} [P]

When I just setup the RewriteRule, LiteSpeed tells me I need to add an external app with the web server as the name. When I do this, it works..somewhat. It directs me straight to www.thedomain.net, without any regard for the ?prog_id=, etc.

I've read that I need to be using the 'Context' proxy, however I havent had a whole lot of success setting this up either. When I set it up for where it needs to be, it continues to redirect me to www.thedomain.net, as if nothing had changed...

Any help would be great.

mistwang
09-08-2009, 10:56 AM
Currently the rewrite rule does not support changing query string, can only change the request URI part. Next release will support changing query string.

EvoIX_MR2006
09-08-2009, 01:36 PM
Ah, ok, that would be why.

Do you have an estimated time table for this release?