httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <...@bourse.ch>
Subject Re: Alias works fine, AliasMatch breaks ??
Date Thu, 28 Feb 2002 16:56:08 GMT
Ryan wrote:
> 
>  > AliasMatch ^/foo(.*)  /home/WWW-data/349$1
> 
> Thanks Owen, that worked.  But if someone puts in /foo5/, that ends up
> getting aliased to /home/WWW-data/3495/, which is someone else's
> directory.  I tried to anchor it to the end of the string with ^/foo/(*.)
> but that didn't work.  Is it possible to make it match only match /foo/ ?

I take it you really mean (look again at what you wrote):

> AliasMatch ^/foo/(.*)  /home/WWW-data/349/$1

This should work.. 
^ means "from the beginning of the string"
() means "trap this in $1"
. means "any character"
* means "zero or more of the preceding characters"

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message