having trouble getting .htaccess file to engage

This is a discussion on having trouble getting .htaccess file to engage within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I'm trying to password-protect a directory on my Apache 1.31 server. I've placed the file ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2005
laredotornado@zipmail.com
 
Posts: n/a
Default having trouble getting .htaccess file to engage

Hi, I'm trying to password-protect a directory on my Apache 1.31
server. I've placed the file in the appropriate directory. It
consists of

AuthType Basic
AuthUserFile "/my/path/that/exists/.htpasswd"
AuthName Limited!
require valid-user

I've verified that the .htpasswd file exists. I used
http://www.poplarware.com/cgi-bin/htpasswd.cgi to generate the line in
my .htpasswd file. However, whenever I visit the directory I want to
password protect, no prompt appears. I've tried restarting my server
and set the .htaccess file permissions to 775.

What else can I do?

Thanks, - Dave

  #2 (permalink)  
Old 08-23-2005
Jorey Bump
 
Posts: n/a
Default Re: having trouble getting .htaccess file to engage

laredotornado@zipmail.com wrote in news:1124815353.326892.264510
@g43g2000cwa.googlegroups.com:

> Hi, I'm trying to password-protect a directory on my Apache 1.31
> server. I've placed the file in the appropriate directory. It
> consists of
>
> AuthType Basic
> AuthUserFile "/my/path/that/exists/.htpasswd"
> AuthName Limited!
> require valid-user
>
> I've verified that the .htpasswd file exists. I used
> http://www.poplarware.com/cgi-bin/htpasswd.cgi to generate the line in
> my .htpasswd file. However, whenever I visit the directory I want to
> password protect, no prompt appears. I've tried restarting my server
> and set the .htaccess file permissions to 775.
>
> What else can I do?


http://httpd.apache.org/docs/1.3/mod...#allowoverride
  #3 (permalink)  
Old 08-25-2005
David Efflandt
 
Posts: n/a
Default Re: having trouble getting .htaccess file to engage

On 23 Aug 2005, laredotornado@zipmail.com <laredotornado@zipmail.com> wrote:
> Hi, I'm trying to password-protect a directory on my Apache 1.31
> server. I've placed the file in the appropriate directory. It
> consists of
>
> AuthType Basic
> AuthUserFile "/my/path/that/exists/.htpasswd"
> AuthName Limited!
> require valid-user
>
> I've verified that the .htpasswd file exists. I used
> http://www.poplarware.com/cgi-bin/htpasswd.cgi to generate the line in
> my .htpasswd file. However, whenever I visit the directory I want to
> password protect, no prompt appears. I've tried restarting my server
> and set the .htaccess file permissions to 775.


Your .htaccess and .htpasswd files do not need more than 644 permission,
and might even be considered insecure if greater than that. Although, if
you are using a CGI to populate your .htpasswd it might depend who your
CGI is running as (whether suexec is effective). But it is more likely
that you overlooked the AllowOverride in your main config per another
reply.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0