.htaccess being ignored?

Place to discuss Fedora and/or Red Hat
User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Nov 22, 2010 4:48 pm

If it works in one directory and not in another then it can't really be a module problem. It has something to do with what directory it's in. I think I know what the problem is. What happens if you move your .htpasswd file to /etc/httpd/htpasswd and changing the .htaccess file to point to it there instead, just to see how that effects it. P.S. I always put the password file outside of the directory structure of the web pages being served.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Nov 22, 2010 4:58 pm

I just figured it out. Instead of "require xxx" use "require user xxx" OR "require valid-user".

http://httpd.apache.org/docs/current/mo ... ml#require

User avatar
Basher52
guru
guru
Posts: 919
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Mon Nov 22, 2010 5:00 pm

Same error, getting login box but password won't work

Code: Select all

[Mon Nov 22 23:59:30 2010] [error] [client 82.xx.xxx.x] access to /usage failed, reason: require directives present and no Authoritative handler.
All I get from google is that there seem to be some modules missing.


Can it be something that I use SHA instead of kerberos which I've heard is crap.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Nov 22, 2010 5:05 pm

Read my last post. I tested it on my laptop and got the same error you are getting until I used the proper "require" syntax.

User avatar
Basher52
guru
guru
Posts: 919
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Mon Nov 22, 2010 5:14 pm

Works great :)

DOH! how stupid can I be lol
I KNOW this since I've done it lots of time before :P

ah well, thanks again

Post Reply