rewrite rules translation

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Sat May 03, 2008 1:35 pm    Post subject: rewrite rules translation Reply with quote

Hello

Can you help me to make right translation theese rules for Abyss?

Users perform authorization via (AuthType BasicAuth).
Link /home/* forward them to their home paths.

RewriteCond %{REMOTE_USER} !=""
RewriteCond /home/(%{REMOTE_USER}) -d
RewriteRule (.*) /home/%1/$1

thank you
Back to top View user's profile Send private message
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Sun May 04, 2008 11:54 am    Post subject: Reply with quote

Please, really need your help!

What variable is used when users are authorizing?
It's not REMOTE_USER.
Now I configure forwarding to home paths by check IP.
But there is one little thing I can't understand:

My rewriting rule:
Virtual path: /private/(.*)
Conditions: REMOTE_ADDR = 192.168.0.109
Internal redirection to: /private/folder1/$1
Append Query String - checked or not without a difference
Escape Redirection Location - checked or not without a difference

When the user enters into the folder, the reference does not change.
For example:
User typed in browser: http://...../private
After redirection to private folder he still have in browser: http://...../private

If there is a way to see full URL like http://...../private/folder1 after an enter of the user?
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Mon May 05, 2008 11:35 am    Post subject: Reply with quote

careernow wrote:
What variable is used when users are authorizing?
It's not REMOTE_USER.


No its not, I think it's HTTP_AUTH_USER
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Mon May 05, 2008 1:30 pm    Post subject: Reply with quote

seems not

Code:
Request URI=[/private/russtur/]:
   Rule #1: Regex [/private/(.*)] matches with the request URI
      Testing the conditions:
         REMOTE_ADDR (value: [192.168.0.109]) == [192.168.0.109] => TRUE
         HTTP_AUTH_USER (value: []) == [russtur] => FALSE
      The conditions are not verified (FALSE).
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Mon May 05, 2008 8:41 pm    Post subject: Reply with quote

careernow wrote:
seems not

Code:
Request URI=[/private/russtur/]:
   Rule #1: Regex [/private/(.*)] matches with the request URI
      Testing the conditions:
         REMOTE_ADDR (value: [192.168.0.109]) == [192.168.0.109] => TRUE
         HTTP_AUTH_USER (value: []) == [russtur] => FALSE
      The conditions are not verified (FALSE).


You could always try PHP_AUTH_USER, but i don't think its available outside of a php script

or you could try AUTH_USER
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Tue May 06, 2008 8:23 am    Post subject: Reply with quote

all the same it doesn't work.
Maybe somebody knows what variable is used for Abyss authorization?
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Tue May 06, 2008 11:06 am    Post subject: Reply with quote

careernow wrote:
all the same it doesn't work.
Maybe somebody knows what variable is used for Abyss authorization?


What value does REMOTE_USER have in your rewriting logs?

Otherwise I think we'll have to wait for aprelium to give an answer!
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Tue May 06, 2008 12:35 pm    Post subject: Reply with quote

After authorization I have REMOTE_USER value: []
Back to top View user's profile Send private message
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Sat May 10, 2008 10:03 pm    Post subject: Reply with quote

Quote:
Otherwise I think we'll have to wait for aprelium to give an answer!


btw where is he ?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu May 15, 2008 4:36 pm    Post subject: Reply with quote

careernow wrote:
After authorization I have REMOTE_USER value: []


The URL rewriting rules were evaluated before the authorization module enters in action. This explains why the value was empty. Try enabling full URL rewriting logging to check the actual values of all the variables and headers and to know which ones are containing the user name value.

If the problem persists, please contact our technical support by email.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Fri May 16, 2008 12:15 pm    Post subject: Reply with quote

I've send email to support.
Back to top View user's profile Send private message
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Fri May 23, 2008 1:11 pm    Post subject: Reply with quote

... and where is your answer?
I didn't recieve any emails.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue May 27, 2008 4:21 pm    Post subject: Reply with quote

careernow wrote:
... and where is your answer?
I didn't recieve any emails.


Oops. It seems that your email got flagged as spam. We've just discovered it and will send you a reply within a day or two.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
careernow
-


Joined: 01 May 2008
Posts: 12

PostPosted: Fri May 30, 2008 8:46 am    Post subject: Reply with quote

since i have not recieved any letter from you i send you a private message with the copy of my question. Tell something if possible :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group