Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2000 11:38:41 -0500
From:      "Jim Weeks" <jim@siteplus.net>
To:        "Mihai Claudiu Capatina" <mihai.capatina@aignet.ro>, "Gabriel Ambuehl" <gabriel_ambuehl@buz.ch>
Cc:        <isp@FreeBSD.ORG>
Subject:   Re: htaccess only protecting one specific subdir?
Message-ID:  <007901c05ed9$d6246f00$333d2426@siteplus.net>
References:  <15473937196.20001205161309@buz.ch> <3A2D1585.7041BA54@aignet.ro>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
I have done a little experimenting and discovered that you can cut this down to only the <Limit > directive in subdirectories.  In other words, if you only wanted to protect the higher level directory, you would place a complete .htaccess file into / and then place the following in any /subdirectory that you want to enjoy complete access.

<Limit >
    require
</Limit>

Jim

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have done a little experimenting and discovered 
that you can cut this down to only the &lt;Limit &gt; directive in 
subdirectories.&nbsp; In other words, if you only wanted to protect the higher 
level directory, you would place a complete .htaccess file into / and then place 
the following in any /subdirectory that you want to enjoy complete 
access.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;Limit &gt;<BR>&nbsp;&nbsp;&nbsp; 
require<BR>&lt;/Limit&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jim</FONT></DIV></BODY></HTML>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007901c05ed9$d6246f00$333d2426>