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

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

Post by Nobody Speci » Thu, 13 Mar 2003 04:52:27



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!

Rewri*gine 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

 
 
 

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

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]

or

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
/internal/ss1/home.html

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

-Mark.

2. Basic Linux networking questions

3. Authentication: can't demand authentication for ProxyPass links

4. RH 6.2 problem

5. Apache 1.3.11 (Solaris) and ProxyPass with authentication...

6. changing shells

7. apache basic authentication with proxypass line

8. Installing Slackware

9. Apache: proxypass authentication

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

11. Apache Rewrite rule for port forwarding -- Absolute mod_rewite beginner needs help..

12. Apache based Dynamic Mirror - use Mod_rewite or other???

13. RewriteRule duplicates $1 in RewriteRule