[rewrite] how to forward env. variable via URL rewrite ?

This is a discussion on [rewrite] how to forward env. variable via URL rewrite ? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I'm facing various problems on MacOS X Server that have lead me to setup a 2-apache web ...


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 01-26-2005
patpro ~ patrick proniewski
 
Posts: n/a
Default [rewrite] how to forward env. variable via URL rewrite ?

Hello,

I'm facing various problems on MacOS X Server that have lead me to setup
a 2-apache web server (in order to use mod_dav_svn with mod_auth_apple,
each, unfortunately, running on a different apache version).

I have this setup :

front apache : 1.3, - mod_auth_apple, providing authentification
against the university LDAP/OpenDirectory
- mod_proxy, proxying requests to "back apache"

back apache : 2.x, - mod_dav_svn; providing SVN over HTTP

Everything works fine, except for one thing : mod_dav_svn is not aware
of the name of the user who logs in on "front apache". Then, all the
meta data of Subversion are not fully set.

What I want to do is to forward this information to the "back apache"
using rewrite rules.
On front side I have :

RewriteEngine On
RewriteRule ^(.*) $1/u=%{REMOTE_USER}/ [L]

On back side I have :

RewriteEngine On
RewriteRule ^(.*)/u=([^/]+)/(.*) $1/$3 [L,E=REMOTE_USER:$2,P]

I tryied with E=REMOTE_IDENT:$2 too, and with both, with no luck.
mod_dav_svn still can't find the user name...

Any idea ?

patpro
 
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 05:02 PM.


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