Re: [users@httpd] Trouble with regexp on <Directory>, using Apache 1.3.33

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux