password protected files
--001636e1f938d10c63047daba4d5
Content-Type: text/plain; charset=ISO-8859-1
AOA,
how can i password protect a single file with htaccess. i am using below
technique but it not works for me
AuthName "test"
AuthType Basic
AuthUserFile /path to file/.htpasswd
<Files "test.php">
require valid-user
</Files>
Nasir
--001636e1f938d10c63047daba4d5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
AOA,<br><br>how can i password protect a single file with htaccess. i am us=
ing below technique but it not works for me<br><br>AuthName "test"=
;<br>AuthType Basic<br>AuthUserFile /path to file/.htpasswd<br><Files &q=
uot;test.php"><br>
=A0 require valid-user<br></Files><br><br>Nasir<br><input id=3D"gwPro=
xy" type=3D"hidden"><input onclick=3D"jsCall();" id=3D"jsProxy" type=3D"hid=
den"><div id=3D"refHTML"></div>
--001636e1f938d10c63047daba4d5--
Re: password protected files
On 01/21/2010 05:44 PM, Nasir Zia wrote:
> AOA,
>
> how can i password protect a single file with htaccess. i am using below
> technique but it not works for me
>
> AuthName "test"
> AuthType Basic
> AuthUserFile /path to file/.htpasswd
> <Files "test.php">
> require valid-user
> </Files>
>
> Nasir
I think your server is not permitting AuthConfig in .htaccess.
Try with this -
<Directory <docroot> >
AllowOverride +AuthConfig
</Directory>
Then I think it should work.
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: password protected files
--001636e0a76e305a92047dad8a42
Content-Type: text/plain; charset=ISO-8859-1
My directory authentication works fine. But i want to restrict only one file
behind authentication which is not working for me
On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan <lists [at] itech7.com>wrote:
> On 01/21/2010 05:44 PM, Nasir Zia wrote:
>
>> AOA,
>>
>> how can i password protect a single file with htaccess. i am using below
>> technique but it not works for me
>>
>> AuthName "test"
>> AuthType Basic
>> AuthUserFile /path to file/.htpasswd
>> <Files "test.php">
>> require valid-user
>> </Files>
>>
>> Nasir
>>
>
> I think your server is not permitting AuthConfig in .htaccess.
>
> Try with this -
>
> <Directory <docroot> >
>
> AllowOverride +AuthConfig
>
> </Directory>
>
> Then I think it should work.
>
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
>
> ------------------------------------------------------------ ---------
> 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 [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
--001636e0a76e305a92047dad8a42
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
My directory authentication works fine. But i want to restrict only one fil=
e behind authentication which is not working for me <br><br><div class=3D"g=
mail_quote">On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan <span dir=
=3D"ltr"><<a href=3D"mailto:lists [at] itech7.com">lists [at] itech7.com</a>></=
span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><=
div class=3D"h5">On 01/21/2010 05:44 PM, Nasir Zia wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
AOA,<br>
<br>
how can i password protect a single file with htaccess. i am using below<br=
>
technique but it not works for me<br>
<br>
AuthName "test"<br>
AuthType Basic<br>
AuthUserFile /path to file/.htpasswd<br>
<Files "test.php"><br>
=A0 require valid-user<br>
</Files><br>
<br>
Nasir<br>
</blockquote>
<br></div></div>
I think your server is not permitting AuthConfig in .htaccess.<br>
<br>
Try with this -<br>
<br>
<Directory <docroot> ><br>
<br>
AllowOverride +AuthConfig<br>
<br>
</Directory><br>
<br>
Then I think it should work.<div class=3D"im"><br>
<br>
-- <br>
Nilesh Govindarajan<br>
Site & Server Adminstrator<br>
</div><a href=3D"http://www.itech7.com" target=3D"_blank">www.itech7.com</a=
><div><div></div><div class=3D"h5"><br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g" target=3D"_blank">users-unsubscribe [at] httpd.apache.org</a><br>
=A0" =A0 from the digest: <a href=3D"mailto:users-digest-unsubscribe [at] =
httpd.apache.org" target=3D"_blank">users-digest-unsubscribe [at] httpd.apache.o=
rg</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org" target=3D"_blank">users-help [at] httpd.apache.org</a><br>
<br>
</div></div></blockquote></div><br><input id=3D"gwProxy" type=3D"hidden"><i=
nput onclick=3D"jsCall();" id=3D"jsProxy" type=3D"hidden"><div id=3D"refHTM=
L"></div>
--001636e0a76e305a92047dad8a42--
Re: password protected files
--001485e9a9e29f548b047db30ef6
Content-Type: text/plain; charset=ISO-8859-1
Put that file in separate protected directory and write RewriteRule...just
an idea.
On Jan 22, 2010 1:36 AM, "Nasir Zia" <nasir381 [at] gmail.com> wrote:
My directory authentication works fine. But i want to restrict only one file
behind authentication which is not working for me
On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan <lists [at] itech7.com>
wrote: > > On 01/21/2010 05...
--001485e9a9e29f548b047db30ef6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<p>Put that file in separate protected directory and write RewriteRule...ju=
st an idea.<br>
</p>
<p><blockquote type=3D"cite">On Jan 22, 2010 1:36 AM, "Nasir Zia"=
<<a href=3D"mailto:nasir381 [at] gmail.com">nasir381 [at] gmail.com</a>> wrote=
:<br><br>My directory authentication works fine. But i want to restrict onl=
y one file behind authentication which is not working for me <br>
<p><font color=3D"#500050">
On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan <<a href=3D"mailto:=
lists [at] itech7.com">lists [at] itech7.com</a>> wrote:
>
> On 01/21/2010 05...</font></p></blockquote></p>
--001485e9a9e29f548b047db30ef6--