ProxyPass and RewriteRule [P] - what is the difference??

ProxyPass and RewriteRule [P] - what is the difference??

Post by Fredrik Persso » Tue, 07 Nov 2000 04:00:00



Hi!

Does anyone know the difference between

ProxyPass On
ProxyPass * http://www.veryComputer.com/:81/

and

Rewri*gine On
RewriteRule ^/(.*)$ http://www.veryComputer.com/:81/$1 [P,L]

???

Shouldn't these do the same thing? Doesn't the [P] indicate that the rewrite
should do a proxy request?

Thanks!

/Fredrik Persson

 
 
 

ProxyPass and RewriteRule [P] - what is the difference??

Post by adam » Tue, 07 Nov 2000 04:00:00



> Does anyone know the difference between

> ProxyPass On
> ProxyPass * http://www.veryComputer.com/:81/

> and

> Rewri*gine On
> RewriteRule ^/(.*)$ http://www.veryComputer.com/:81/$1 [P,L]

I believe they should be doing the same thing (other than using
mod_rewrite to tell mod_proxy to handle the request rather than just
having mod_proxy do the work).

Quote:

> ???

> Shouldn't these do the same thing? Doesn't the [P] indicate that the rewrite
> should do a proxy request?

Yup, [P] indicates that mod_proxy should pass the request to the proxy
handler.

-adam

 
 
 

1. HELP: Apache + Mod_rewite + login/authentication + proxypass + Rewriterule

hey Im a little lost here. Ive tried a few times to append a login id
to the URL via Mod_rewrite

It works but it winds up in an endless loop where it keeps appending
the login id onto the Url thousands of times...  and locking up!

RewriteEngine on
RewriteBase   /login/inventory/
RewriteCond %{QUERY_STRING} !*login=*
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^(.*)/(.+)\.asp(.*)$
/login/inventory/$2.asp$3&login=%{REMOTE_USER} [R,P,L]

So i see in the logs i wind up getting
login=xxxx&login=xxxx&login=xxxx&login=xxxx

appended hundreds of times.

Any ideas on how to get this to work?   Im stumped

2. AIX ByteUnix benchmark Questions

3. Apache: Proxy Problem using ProxyPass or RewriteRule ... ... [P]

4. Porting application from Linux to Solaris results in I/O performance problems

5. RewriteRule duplicates $1 in RewriteRule

6. Sys::Syslogd whith RedHat 5.2

7. Matrox Mystique ands X.

8. SunOS 4.1.3 binaries on Linux 2.0.23

9. Difference in ksh's viewed via "ps"?

10. ps differences between 2.4 and 2.5?

11. This clone thing...am I stupid, or am I right?

12. I am with the following error, when i am running lilo...