What does apache use as a "Directory Name"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
If I have a file "/var/www/cgi-bin/user/test.cmd" then what string will be passed to the code that handles <Directory> and <DirectoryMatch> directives as the name of the file's directory?
It seems to me it could be either /var/www/cgi-bin/user or /var/www/cgi-bin/user/
So what should I use in a <Directory> directive to match items in directory /var/www/cgi-bin/user *without* matching items in directory /var/www/cgi-bin/users
The reason I'm trying to get this clear is that I'm trying to create a <Directory> block that will apply to all subdirectories of directory /var/www/cgi-bin without affecting files within directory /var/www/cgi-bin
I think it should be <Directory /var/www/cgi-bin/?*>
The "/" ensures there is at least one character beyond the "cgi-bin/" in the directory name. This is why I'm curious what directory name is used when the file referenced is /var/www/cgi-bin/user/test.cmd
In the past I've tried things like <Directory /var/www/cgi-bin/*/*> but this doesn't seem to work in our 2.2.9 server.
[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]