httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn <>
Subject Re: [users@httpd] Trouble with regexp on <Directory>, using Apache 1.3.33
Date Thu, 25 Aug 2005 18:10:15 GMT
Hello Joshua, thanks for your post.

That would be a valid solution if the real names where A and B, but 
unfortunately they're longer than a single character ("crewforum" and 
"stats" to be exact) and this wouldn't work on the virtual locations as well.

At 20:36 24-8-2005 -0400, you wrote:
>Well, I'm not sure why this doesn't work, but you shouldn't even need
>a regex for that.  You should be able to do
><Directory /home/websites/[AB]/>
>using shell-style wildcard character classes.  See:
>which is for a more modern version of the server but should still apply to 
> > I've got a few directories, lets say they're named A, B, C and D.
> > Two of these (A and B) need to be restricted.
> >
> > I figured that this should be done by the following regexp:
> > <Directory ~ "/home/websites/(A|B)">

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message