On Tue, 2010-10-12 at 13:37 -0700, Jim Isaacs wrote: > I'm trying to do something that seems as if it would be fairly common, but I > just can't get it to work. > I want to do a "not" match for a regex host match. > basicall I want this: > *.example.com > example.com > both to redirect to: > www.example.com > Doing this with wildcards of course is an infinite redirect, but to do this > with a "not" match would work. > Basically like:
With wildcards, you could define the vserver www.example.com, and add a redirect vserver (domain pattern *example.com) right after that. No need to do a 'not' match - Cherokee just picks the first matching server according to its rules and uses that. If for www.example.com the first matching vserver is the actual vserver, you're set! Best, Koen _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
