Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-05-2012, 05:01 PM   PM User | #1
arrowintheknee
New to the CF scene

 
Join Date: May 2012
Location: At Work
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
arrowintheknee is an unknown quantity at this point
htpasswd not protecting files just folders

I have been trying to figure this out for days. I have a setup like this:

Code:
AuthUserFile /usr/local/user/.htpasswds/.htpasswd
AuthGroupFile /dev/null
AuthName Password
AuthType Basic

require valid-user
and in my .htpasswd file I have

Code:
user:pass
I have two problems actually. It will protect the directory but the files do not get password protected at all. I tried with a txt file and I can just put in the full url and it shows the txt. This only happens on a system I am running cpanel on, it doesn't occur on a lamp server after I configure to
Code:
AllowOverride All
(which I tried on this server as well but the linux file system is significantly different.

The second problem is, I can't authenticate with
Code:
user:pass
as a format. Every tutorial I have seen says that format:
Code:
username:password
so why doesn't it work on multiple setups? Or again, is every person writing tutorials leaving a fundamental out which to the self taught folk like myself would not just inherently be in our heads.

I am at a loss.
arrowintheknee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 PM.


Advertisement
Log in to turn off these ads.