LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-05-2003, 01:12 PM   #16
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235

Change your AllowOveride None to:

AllowOverride AuthConfig Limit

And then restart the apache server with:

apachectl configtest #<---- to test for any syntax errors, if all good then:

apachectl restart
 
Old 06-05-2003, 01:25 PM   #17
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
When i set the AllowOverride to AllowOverride AuthConfig Limit in the <Directory /var/www/htdocs> (directive) I get the following error when accessing the directory i am trying to protect:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I will try to look for the server logs.
 
Old 06-05-2003, 01:32 PM   #18
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Did you set the htpasswd for a user specifying the path or your .htpasswd file your adding them to ?

htpasswd -c </var/www/auth/.htpasswd> <username>
 
Old 06-05-2003, 01:36 PM   #19
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
Syntax is reporting back as syntax ok
But i still am getting this problem, any ideas
 
Old 06-05-2003, 01:41 PM   #20
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
Trikykid first thanks for all you help today,
Yeah i did my .htpasswd file is located in the root of the system and when adding the user i ran the following command
htpasswd -c /.htpasswd <username>

But the problem is when i try to access that dir on ie5 i get the server error message,
 
Old 06-05-2003, 01:45 PM   #21
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Just dawned on me.. try doing this to your .htaccess file in the directory protected around the require valid-ser:

<Limit GET>
require valid-user
</Limit>

And if that doesn't work, I'm going to jump off a bridge..
 
Old 06-05-2003, 02:00 PM   #22
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
I have just tried it
<Limit GET>
require valid-user
</Limit>
like that and with just require valid-user at the end aswell but still no joy.

Will try it in the morning with a freash mind, getting kicked out of the office now and i have no net connection where i am staying tonight.

Last edited by tailine; 06-05-2003 at 02:03 PM.
 
Old 06-06-2003, 04:47 AM   #23
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
Still having no luck i have now tried several differant things but no luck. Any ideas
 
Old 06-06-2003, 05:02 AM   #24
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What exactly are you geting - a 500 error?

Can you post your .htaccess file and .htpasswd file as well as their locations and permissions.
 
Old 06-06-2003, 05:04 AM   #25
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
LOL - Just fixed this one. Didn't realise who tailine was or I'd have definatley ignored him

There was a typo in the .htaccess file AuthUserFiles should have been AuthUserFile.

cheers

Jamie...
 
Old 06-06-2003, 10:49 AM   #26
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by jharris
LOL - Just fixed this one. Didn't realise who tailine was or I'd have definatley ignored him

There was a typo in the .htaccess file AuthUserFiles should have been AuthUserFile.
That makes sense why it would get errors.....
 
Old 06-06-2003, 10:55 AM   #27
tailine
Member
 
Registered: Jun 2002
Distribution: Slackware 9.0
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks lads Jamie, I will be pestering you continuously now lol
 
Old 06-16-2003, 08:27 AM   #28
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally posted by trickykid
Make sure you have these in your httpd.conf file:

Code:
# This to look for filename to access control information

AccessFileName .htaccess

# This to prevent the .htpassword and .htaccess files from being able to be viewed.

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>


# And also something like this placed in your <Directory> directive tags, etc:

    AllowOverride AuthConfig Limit
Thank you! Helped me out quite a bit with this, I had it all setup, just needed the AllowOverride bit.

Cool
 
  


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
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 03:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 08:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 11:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 02:01 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 04:33 PM

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

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