LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Context support for AliasMatch?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-26-2008, 08:13 AM
nutz nutz is offline
New Member
 
Join Date: Feb 2008
Posts: 9
Question Context support for AliasMatch?

Hi,

I am trying to redirect an entire directory to a single file. With Apache, I used this:
Code:
AliasMatch ^/dir /path/to/file
I tried setting a "Static" Context like this:
Code:
URI = exp:^/dir
Location = $VH_ROOT/file
Accessible = Yes
"file" is in the virtual host root directory, but it isn't working. I also tried adding "(.*)" and "(.*)$" to the URI, with no effect.

If I change the Context to this:
Code:
URI = /dir/
Location = $VH_ROOT/file
Accessible = Yes
Then it works, but only for "/dir/", not "/dir/x".

Looking at the debug log with the first Context, I see these lines:
Code:
File not found [/.../dir/x]
processContextPath() return 25
processNewReq() return 25.
HttpConnection::sendHttpError(),code=404 Not Found
Does that give any clues?

Thanks.
Reply With Quote
 

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:20 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.