
02-26-2008, 08:13 AM
|
|
New Member
|
|
Join Date: Feb 2008
Posts: 9
|
|
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.
|