httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Salisbury" <>
Subject [users@httpd] rewrite proxy and query string
Date Thu, 05 Oct 2006 18:40:59 GMT

Just wondering if this is possible.

Due to a technicality, I would like urls on our site asking for

to be reverse proxied from*

So I'm trying.

RewriteEngine on
RewriteRule ^(/dir/prog?gl/*)$1 [p]

Doesn't seem to work though by itself.  For this to work though, the docs say for the P flag
"Note: mod_proxy must be enabled in order to use this flag."

Well, the module is loaded, but  I'm not sure what I need to kick Proxy off.  I tried these

ProxyPassReverse  /dir/prog?gl/
ProxyPassReverse  /dir/prog?gl/

ProxyPassReverse  /dir/prog?gl/

ProxyPassReverse  /dir/prog?gl/

using either one of the above gets me a " proxy: No protocol handler was valid for the URL"

But perhaps since an argument in the query string is needed to proxy the approprate page,
I am simply out of luck, as the ProxyPass directive needs....
"a partial URL for the remote server and cannot include a query string."
I do not what _all_ the /dir/prog requests proxied.

Is what I'm trying to do possible?  Any help is appreciated.  Thanks!


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message