LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2004, 03:14 PM   #1
magestic
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Apache2 .htaccess - Unable To Get Password Prompt.


I am unable to get this blasted apache2 to prompt for a password while placing a .htaccess file in the directory i browse to.

I used htpasswd2 -c /home/someuser/password user to make the password file.

then edited httpd.conf

old:

# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>

new:

# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride AuthConfig
Order deny,allow
Deny from all
</Directory>

then created the .htaccess file

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/someuser/password
Require user someuser



Can anyone help?

suse 9.1 (ftp install)
 
Old 10-16-2004, 03:05 PM   #2
eva
LQ Newbie
 
Registered: Jul 2004
Distribution: Suse 9.0 & 9.1
Posts: 4

Rep: Reputation: 0
.... don't use .htaccess files, make a directory statement directly in the httpd.conf file and you'll be fine ... like this:

<Directory /your/directory/with/pw/access>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/someuser/password
Require user someuser
</Directory>
 
Old 10-27-2004, 08:49 AM   #3
tbergler
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
This is exactly the same behaviour i can see with my Suse91 Apache2.

It seems, the .htaccess files are only evaluated in case i put a <Directory> statement for the procected dir into the conf file and change the access to Deny from all. I'm confused with this behaviour, Apache 1.3 worked different

tb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
video streaming in .htaccess password protected directories Houseofcyn Linux - Newbie 1 12-20-2004 02:05 PM
.htaccess + PHP, without password prompt woranl Programming 5 11-26-2004 01:04 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 01:47 PM
Apache 2.0 - mod_auth .htaccess prompt comes up but wont accept bkeating Linux - Software 1 11-17-2003 10:39 PM
pcfg_openfile: unable to check htaccess file, ensure it is readable andy18 Linux - General 4 08-21-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration