httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <luis.more...@esinnovation.pt>
Subject Re: [users@httpd] aliasmatch negated class regexp
Date Thu, 04 Mar 2004 14:34:10 GMT
    I am not a guru on regular expressions, so forgive all you beautiful
people out there who are, if I say something silly...

    As far as I know, AliasMatch is a directive to use when expressions
MATCH something, not the othe way around.
    If what you want is "the other way around", I suppose it's logical to do

    1) AliasMatch "to-match-html-extensions" URL1
    2) AliasMatch "to-match-everything-else" URL2

Luis

----- Original Message -----
From: "Homsher, Dave V." <Dave.Homsher@mactac.com>
To: <users@httpd.apache.org>
Sent: Thursday, March 04, 2004 1:50 PM
Subject: [users@httpd] aliasmatch negated class regexp


> I'm hoping someone can help here.
>
> I am trying to do an alais match that matches on requests that do not end
in
> "html".
> I have tried perl syntax, POSIX 1003.2 syntax, and several of my own made
up
> syntaxes ;)
>
>
> Here is what I have tried to no avail:
>
> AliasMatch "[.^html.]$" "/new/location/foo.bar" # compiles but
> doesn't work
> AliasMatch "[^.html.]$" "/new/location/foo.bar" # ditto
> AliasMatch "[^[.html.]]$" "/new/location/foo.bar" # error: can't
> compile regexp
> AliasMatch "[^(html)]$" "/new/location/foo.bar" # doesn't work
>
> any ideas?
>
> Thanks
> Dave Homsher
> MACtac IT
>
> ----
> Those who cannot conceive a happiness of their own accept a definition
> imposed upon them by others.
> -- Earl Shorris
>
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message