LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10:40 AM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

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, 04:27 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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



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

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

All times are GMT -5. The time now is 05:30 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