View previous topic :: View next topic |
Author |
Message |
careernow -
Joined: 01 May 2008 Posts: 12
|
Posted: Thu May 01, 2008 6:01 pm Post subject: redirect to private virtual folder |
|
|
hello
Plz could you advice a solution.
I'm using Web Server X1 version 2.5.
I need to do something like private folders for every selected user.
For instance, we have user1 and user2. User1 has ip 192.168.0.4 and User2 has 192.168.0.5.
I create 2 aliases for virtual folders: [/user1 -> C:\] and [/user2 -> D:\].
Then I create 2 users: u1 and u2 with their passwords. In Access control tool I protect all virtual paths.
Ok, now will be URL rewriting tool.
----------------------------------------------------
Virtual Path Reg. expres. = /
Case sensitive
Conditions = REMOTE_ADDR matches with (or =) 192.168.0.4
Apply subrequest too
Perform internal redireccion:
/user2/
Append Query String
Escape Redirection Location
Next action: Stop Matching
----------------------------------------------------
What is happening:
User1 type in browser http://address.
When user 1 enter his password he goes directly to virtual path /user1.
But url isn't changing (http://address).
If he I try to open any files like .jpg .htm or other from this directory the page is only refreshing and nothing more. If i click "save as" i will have the copy of this directory listing .htm file.
What is my mistake?
Thanks |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu May 15, 2008 4:11 pm Post subject: Re: redirect to private virtual folder |
|
|
careernow wrote: |
When user 1 enter his password he goes directly to virtual path /user1.
But url isn't changing (http://address). |
The URL is not changing because you've selected "Internal Redirection" instead of "External Redirection". _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|