LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-16-2002, 02:50 PM   #1
luger
Member
 
Registered: Jan 2002
Posts: 46

Rep: Reputation: 15
Apache 1.3 and basic auth


Im trying to get a login/pass prompt when you try and go to my web site. I have read the apache docs on auth and it says to make a .htaccess file. I did this and its still not working. Can someone help me plz?

Here is my htaccess file, it is located in the
/usr/local/apache/htdocs dir which is my root dir for apache.

I have created the password file with the user luger with the
htpasswd.



<Directory "/usr/local/apache/htdocs">
AuthType Basic
AuthName "Rale"
AuthUserFile /usr/local/apache/passwd/password
Require user luger
</Directory>


 
Old 05-16-2002, 05:34 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
What do you mean by "not working"? Is it at least asking for a username and password? Please be more specific as to the symptoms.
 
Old 05-16-2002, 05:51 PM   #3
luger
Member
 
Registered: Jan 2002
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry, when i goto the main site it does not get prompt for anything. It just displays the page fine, I have went through my httpd.conf and made sure all the AllowOverride were set to All and that didnt help either, not prompt for login or password.

IF you need more info then that just tell me

Thanks for the reply.
 
Old 05-17-2002, 03:40 PM   #4
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Hmmmm... The directives look OK...

Do you have any other options set for that same directory that may be conflicting with the auth setup? Don't just check for AllowOverride (that applies to .htaccess files), check for any directives that apply to the directory in question or its parent(s).

Some distros have nasty habits of smacking something stupid in their version of the default config files for many programs (I guess, to make them "foolproof", security wise). I had to change 3 things to get X working over the network on my RH7.2!

Have you tried doing the same thing with .htaccess files, just for the sake of an experiment?
 
Old 05-17-2002, 06:06 PM   #5
luger
Member
 
Registered: Jan 2002
Posts: 46

Original Poster
Rep: Reputation: 15
I have tired putting it in both the httpd.conf files and in a .htaccess files and neither work.

I have make some changes and now if I tail the error log file i get
this message.


[error] [client 32.97.110.71] need AuthName: /

and i cant get to my web page. Any suggestions?
I got apache from the apache web site and im using the default
httpd.conf from the src.
 
  


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
(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
basic auth in apache CodeGeek Linux - Newbie 2 04-14-2004 10:27 AM
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


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