Trying to get htaccess to work...or...man, what am I doing w…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Anthony Hologounis
Date:  
Subject: Trying to get htaccess to work...or...man, what am I doing wrong!
--------------020603060605000806070306
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

ouch!..thanks...I made the change to htpasswd and it is indeed blocked
vrom viewing.


Thanks!

Anthony

Matt Alexander wrote:

>So what happens when you browse to:
>
>http://localhost/test/.test
>
>???
>
>Your httpd.conf file should be configured to automatically block the
>loading of any files that start with .ht. So you should name the
>AuthUserFile something like .htpasswd instead. Also, it wouldn't hurt to
>move this file out of the webtree and put it in another directory that the
>webserver has read access to.
>~M
>
>
>On Tue, 1 Oct 2002, Anthony Hologounis wrote:
>
>
>
>>That was it!
>>
>>the missing piece was this in the htpd.conf file
>>
>><Location /test/>
>>AuthName "restricted stuff"
>>AuthType Basic
>>AuthUserFile /var/www/test/.test
>>require valid-user
>></Location>
>>
>>
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>PLUG-discuss mailing list -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>



--------------020603060605000806070306
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
ouch!..thanks...I made the change to htpasswd and it is indeed blocked vrom
viewing.<br>
<br>
<br>
Thanks!<br>
<br>
Anthony<br>
<br>
Matt Alexander wrote:<br>
<blockquote type="cite"
cite="">
<pre wrap="">So what happens when you browse to:

<a class="moz-txt-link-freetext" href="http://localhost/test/.test">http://localhost/test/.test</a>

???

Your httpd.conf file should be configured to automatically block the
loading of any files that start with .ht. So you should name the
AuthUserFile something like .htpasswd instead. Also, it wouldn't hurt to
move this file out of the webtree and put it in another directory that the
webserver has read access to.
~M


On Tue, 1 Oct 2002, Anthony Hologounis wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">That was it!


the missing piece was this in the htpd.conf file

&lt;Location /test/&gt;
AuthName "restricted stuff"
AuthType Basic
AuthUserFile /var/www/test/.test
require valid-user
&lt;/Location&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.plug.phoenix.az.us"></a>
To subscribe, unsubscribe, or to change  you mail settings:
<a class="moz-txt-link-freetext" href="http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss">http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss</a>


</pre>
</blockquote>
<br>
</body>
</html>

--------------020603060605000806070306--