LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2004, 08:08 PM   #1
CodeGeek
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Rep: Reputation: 0
basic auth in apache


i'm running apache 1.3.29 and i'm trying to get authentication setup for a virtualhost. i did what i've always done, create the passwd file and all, but for some reason it's not letting me use a .htaccess file for it...so i'm using httpd.conf, it prompts for username/password but when i try to login, nothing happens. this is what i did:

Code:
root@codegeeks:/usr/local/phpMyAdmin$ htpasswd -c .htpasswd admin
*enter password*
and in the httpd.conf i'm doing this:
Code:
<Directory /usr/local/phpMyAdmin>
    AuthType Basic
    AuthName "phpMyAdmin"
    AuthUserFile /usr/local/phpMyAdmin/.htpasswd
    Require admin
</Directory>
any ideas on how to get this fixed?
 
Old 04-10-2004, 01:12 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think you want:
require user admin


If you can't use htaccess files then you probably need to change the AllowOverride variable for the directory it is in within httpd.conf
 
Old 04-14-2004, 09:27 AM   #3
CodeGeek
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for the help, i forgot about adding user on the Require line. and .htaccess works now, too.

thanks again.
 
  


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
(java) BASIC and FORM based auth in the same web app mhiggins Programming 0 10-14-2004 10:07 AM
[PROFTPD] LDAP vs basic auth. Creak Linux - Security 1 09-21-2004 07:52 PM
apache auth deflin39 Linux - Software 5 01-09-2004 09:17 PM
apache auth with NT antken Linux - Software 0 07-09-2002 07:11 AM
Apache 1.3 and basic auth luger Linux - Networking 4 05-17-2002 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

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