mod_proxy & mod_rewrite

This is a discussion on mod_proxy & mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; how can I proxy this through: RewriteEngine On ProxyRequests On RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*) RewriteRule (.*) $1?%1query2=rewritten%...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
zen
 
Posts: n/a
Default mod_proxy & mod_rewrite

how can I proxy this through:

RewriteEngine On
ProxyRequests On

RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*)
RewriteRule (.*) $1?%1query2=rewritten%3
RewriteRule ^http://www.domain.com/(.*) http://www.domain.com/$1 [P,L]
ProxyPass / http://www.domain.com/


input:
http://www.domain.com/?query1=123456...query3=1234567
output:
http://www.domain.com/?query1=123456...query3=1234567


  #2 (permalink)  
Old 03-08-2005
HansH
 
Posts: n/a
Default Re: mod_proxy & mod_rewrite

"zen" <nik@portfoliodesign.net> schreef in bericht
news:422d7ad8$0$8750$db0fefd9@news.zen.co.uk...
> how can I proxy this through:
> RewriteEngine On
> ProxyRequests On
> RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*)
> RewriteRule (.*) $1?%1query2=rewritten%3
> RewriteRule ^http://www.domain.com/(.*) http://www.domain.com/$1 [P,L]

For one thing the 'http://www.domain.com' is not part of the request,
you'll need to use a condition on [at least] %{HTTP_HOST}.

Another thing ... you're really planning to proxy back into the same domain
???

HansH
--
There is no Rich Text Formatted Manual on this subject.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0