View previous topic :: View next topic |
Author |
Message |
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Sat May 03, 2008 1:35 pm Post subject: rewrite rules translation |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Sun May 04, 2008 11:54 am Post subject: |
|
|
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 |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Mon May 05, 2008 11:35 am Post subject: |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Mon May 05, 2008 1:30 pm Post subject: |
|
|
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 |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Mon May 05, 2008 8:41 pm Post subject: |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Tue May 06, 2008 8:23 am Post subject: |
|
|
all the same it doesn't work.
Maybe somebody knows what variable is used for Abyss authorization? |
|
Back to top |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Tue May 06, 2008 11:06 am Post subject: |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Tue May 06, 2008 12:35 pm Post subject: |
|
|
After authorization I have REMOTE_USER value: [] |
|
Back to top |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Sat May 10, 2008 10:03 pm Post subject: |
|
|
Quote: | Otherwise I think we'll have to wait for aprelium to give an answer! |
btw where is he ? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu May 15, 2008 4:36 pm Post subject: |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Fri May 16, 2008 12:15 pm Post subject: |
|
|
I've send email to support. |
|
Back to top |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Fri May 23, 2008 1:11 pm Post subject: |
|
|
... and where is your answer?
I didn't recieve any emails. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue May 27, 2008 4:21 pm Post subject: |
|
|
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 |
|
|
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Fri May 30, 2008 8:46 am Post subject: |
|
|
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 |
|
|
|