Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-09-2004, 09:08 PM   #1
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 i'm using httpd.conf, it prompts for username/password but when i try to login, nothing happens. this is what i did:

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

Rep: Reputation: 66
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, 10:27 AM   #3
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.


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

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

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