Re: setting options for a single file

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

 



On Tue, 2011-12-27 at 09:54 -0500, Eric Covener wrote:
> Probably doesn't make much practical sense, since you can just use
> directory match in 2.3/2.4 and no change to Files or Directory would
> likely to ever be available in any older release.

Ah... now I've seen what you mean,... it now supports $ :D

So with 2.3/2.4/trunk I could just use:

<Direcotory /path/tovHost>
	foo
	bar
	deny from all
</Directory>


#selectively allow subdirs
<Direcotory /path/tovHost/subDir>
	allow from all
</Directory>


#allow only /path/tovHost/robots.txt
<DirecotoryMatch "^/path/tovHost$">
	<Files robots.txt>
		allow from all
	</Files>
</DirectoryMatch>


And the files section would not be used on any subdirs of /path/tovHost,
right?


Is there a different whether I match
"^/path/tovHost$"
or
"^/path/tovHost/$"


Cheers,
Chris.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[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