Help Help mod_rewrite !!

Help Help mod_rewrite !!

Post by Awad, Dia [NORSE:6G00:EXCH » Fri, 19 May 2000 04:00:00



Hi there.

my only problem is to get the user id from the
environment and use it in the mapping. I had many trial
as to using %{REMOTE_USER} , but always return "" noting,
I use %{HTTP_HOST}, and I get the host.

I made an .htaccsee/.htpasswd on top of the requested
file, but I still get "". I went to the configuration,
and looked at it, it's OK.

My final analagy is as follow:

Client ------(Request)--------> SERVER (client wants file x under
Directory A => /A/x.)
                                  |
                                  |  (Still No UserId spasefied
%{REMOTE_USER} == "")
                                  |  (server attempt to redirect reqiest
at this point to /B/clientID/x.  httpd.conf RewitrRule)
                           -------O-------
                           |             |
                           |             |
                      (Directory A)   (Directory B) (client ends up
going to PATH="/B//" same as B, NO ClientId!!)
              (Clint LogOn popup window)    |
                                            ---------
                                                    |
                                                    |
                                        (client UserID Directory) <=
(****clint should end here****)

I don't know what to do to get the %{REMOTE_USER}. I'm in deep need of a
solution if any.
I tryed every thing I can comup with, still no UserID.

Can sombody till me how can I get the %{REMOTE_USER} at the execution of
the
httpd.conf RewriteRules.

Thank you all for your help, and time.  I truly appreciate it.

Thank You.

yours;

Dia Awad.

 
 
 

Help Help mod_rewrite !!

Post by Awad, Dia [NORSE:6G00:EXCH » Fri, 19 May 2000 04:00:00


I do apologies for the miss.
to better get the image , please do cut, and paste in a
text editir, and join the lines.

 Client ------(Request)------> SERVER # client wants file x under
                                   |  # Directory A => /A/x.
                                   |
                                   |  # Still No UserId spasefied
                                   |  # %{REMOTE_USER} == "".
                                   |  # server attempt to redirect
                                   |  # reqiest at this point to
                                   |  # /B/clientID/x.  httpd.conf
                                   |  # RewitrRule.
                            -------O-------
                            |             |
                            |             |
                       (Directory A)   (Directory B) # client ends up
               #Clint LogOn popup window.   |        # going to
PATH="/B//"
                                            |        # same as B, NO
ClientId!!.
                                            |
                                            ---------
                                                    |
                                                    |
                                         (client UserID Directory) <=
#clint should end here!!

 
 
 

Help Help mod_rewrite !!

Post by Joshua Sliv » Fri, 19 May 2000 04:00:00



Quote:> Hi there.
> my only problem is to get the user id from the
> environment and use it in the mapping. I had many trial
> as to using %{REMOTE_USER} , but always return "" noting,
> I use %{HTTP_HOST}, and I get the host.

I though I answered this yesterday.

According to the docs, you need to use
%{LA-U:REMOTE_USER} in order to get the value through a subrequest.

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Help Help mod_rewrite !!

Post by Gedimina » Sat, 20 May 2000 04:00:00


?


> Hi there.

> my only problem is to get the user id from the
> environment and use it in the mapping. I had many trial
> as to using %{REMOTE_USER} , but always return "" noting,
> I use %{HTTP_HOST}, and I get the host.

%{REMOTE_USER} must be used somwhere in directory context, not in server
config context.
"Require valid user" directive must be applied and used for directory where
you trying to use %{REMOTE_USER}.
?
?