OT: Apache .htaccess question

Alexander Dalloz ad+lists at uni-x.org
Mon Nov 29 18:56:53 UTC 2004


Am Mo, den 29.11.2004 schrieb Ashley M. Kirchner um 18:57:

>     Looking for some gurus here.  I have the following snippet in my 
> .htaccess file:
> 
> SetEnvIfNoCase Remote_Host "some.domain.com" ref_ok=1
> <FilesMatch "\.(gif|jpe?g|png|css|inc|GIF|JPE?G|PNG|CSS|INC|js)">
>   Order allow,deny
>   Allow from env=ref_ok
> </FilesMatch>
> 
>     ...which effectively prevents anyone from remote linking to any of 
> those files anywhere on my web site (including those in sub-directories) 
> except for 'some.domain.com'.  However, I want to _exclude_ a directory 
> from that blanket matching:
> 
>     $web-soot/.htaccess
>     $web-root/thx/         <-- I want to exclude this directory and
>                                everything else that may be below it.
> 
>     Any ideas?

Just place a .htaccess file into web-root/thx/ directory which overrides
the restriction from the .htaccess above. For .htaccess files and it's
instuctions is checked from top to bottom in the file hierarchy.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 19:56:44 up 9 days, 14:44, load average: 0.16, 0.34, 0.40 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20041129/56057907/attachment-0002.bin 


More information about the users mailing list