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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |