LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-31-2006, 11:40 AM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 266

Rep: Reputation: 30
Apache password authentication problem


Hi all, in the stock apache that comes with 10.2 im having a problem trying to set up a password. Here is the relevant part of my httpd.conf:

Code:
<Directory /var/www/url.com>
	AuthType basic
	AuthName realm1
	AuthUserFile realm1
	Require user dave
</Directory>
I the created the password file using "htpasswd -c realm1 dave" then set the password, chmodded the password file to 644, reloaded apache then tried it in a browser on the same machine its hosted on. I get the user/pass box but when i put in the details it doesnt accept them Ive tried many times. What could i be doing wrong?

Any help very much appreciated.
 
Old 05-31-2006, 05:27 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Add the following line after the <Directory /var/www/url.com>:
Code:
AllowOverride AuthConfig
Mind also that is a good practice to put the password file (realm1 in your case) outside the directories that apache uses to serve pages.
 
  


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
apache authentication problem handu Linux - Software 3 11-10-2005 06:13 PM
ntop password authentication problem ClaudeJones Fedora 0 08-21-2005 03:44 PM
Apache Authentication problem... Dillius Linux - Software 5 03-02-2005 03:09 PM
Apache Authentication Problem sbrewer Linux - Software 1 08-23-2004 02:24 PM
apache 1.3.27, basic authentication problem Robert0380 Linux - Software 6 06-08-2003 10:51 PM


All times are GMT -5. The time now is 02:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration