httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn <users.apa...@mindcontrolled.nl>
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:
>http://httpd.apache.org/docs/2.0/sections.html#file-and-web
>which is for a more modern version of the server but should still apply to 
>1.3.
>
> > 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: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