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

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

Post by Mark Hinde » Tue, 25 Feb 1997 04:00:00

I have a small problem using the proxy module in Apache_1.2b7.

In httpd.conf, I have:

ProxyRequests On
ProxyRemote http://xxx.bath.ac.uk http://xxx.bath.ac.uk
ProxyRemote * http://wwwcache.bath.ac.uk:XXXX/

In srm.conf, I have been trying one of the following in srm.conf:

RewriteRule ^/internal/xxx/?(.*) http://xxx.bath.ac.uk/$1 [P]


ProxyPass /internal/xxx http://xxx.bath.ac.uk/

If I request /internal/xxx/home.html, I would expect to see a request for
/home.html on xxx.bath.ac.uk.

Indeed, when using the rewrite module, the rewrite_log shows:

[24/Feb/1997:12:03:35 +0000] (1) go-ahead with proxy request
proxy:http://xxx.bath.ac.uk/home.html [OK]

However, the logs on xxx.bath.ac.uk show that the requested page was

Why is the request not for /home.html on xxx.bath.ac.uk?



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=*
RewriteRule ^(.*)/(.+)\.asp(.*)$
/login/inventory/$2.asp$3&login=%{REMOTE_USER} [R,P,L]

So i see in the logs i wind up getting

appended hundreds of times.

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

2. Problems with RHat 6.0 and HP

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

4. Microsoft's Biggest Threat?

5. Does Apache-SSL Proxy Server do a "ProxyPass" for WebServers running https ??

6. Mount File Systems

7. apache, proxypass and <directory proxy:*>

8. Deleting non-dos drives, etc...

9. WWW and PROXY auth when using Apache as authetifying reverse-proxy

10. RewriteRule duplicates $1 in RewriteRule

11. Apache 1.2.5 Problem using Proxy and URLs of the form http://host/dir

12. Help: Problems using apache proxy module

13. apache : RewriteRule problem