rewrite and pass along basic auth

New to mod_rewrite? This is a good place to start.

rewrite and pass along basic auth

Postby Juergen » Mon Nov 25, 2002 10:21 pm

Hi,

I've written some PHP code that proxies a remote server using CURL. All cgi's on the remote sever use basic authentication. This is not problem as I know the user/pass combination and can pass them in the CURL request.

There are some cgi's however that I don't want to proxy that way. One in particular is for file uploads. yet, I do want the remote server to be completely protected and invisible to the enduser.

So I come to mod_rewrite. It can load rewrite rules from textfiles, so I was thinking to keep a rewrite textfile for each user on my machine and have mod_rewrite use that for the rules.

But - as I'm completely new to mod_rewrite and don't have a clue:
How do I write a rule that proxy's from my local url to the remote url using a specific user/pass in that request so that the actual enduser is not asked to authenticate?

TIA
Juergen
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 11 guests

cron