• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

Securing a folder in Apache2

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
Apache 2.0.55, PHP 4.4.3, Windows 2K Server

I followed the instructions on this site to the letter using the "ht.acl" file.
http://sniptools.com/tutorials/windows-apache-and-htaccess-authentication

I rebooted the server and now get a "500 Internal Server Error" when trying to access the secure folder. Is there anything wrong with these instructions?

This is the line in the error log:

[Sat Nov 11 20:55:49 2006] [alert] [client 192.XXX.XXX.X] C:/Program Files/XXXXXXXXXXX/ht.acl: AuthUserFile takes 1-2 arguments, text file containing user IDs and passwords

This is for making a secure folder that will prompt you for a username/pw when you try to access it. Also how would I setup a secure folder in a public directory (the first virtual host website) only accessible on the server. What would be an easy way to do this? Thanks!
 

skyking

Lifer
Nov 21, 2001
22,777
5,939
146
from your error:
takes 1-2 arguments, text file containing user IDs and passwords
did you verify that the passwd.txt file exists and has the uname and encypted password written to it?
It sounds as though either that file does not exist or is not properly referenced.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
Originally posted by: skyking
from your error:
takes 1-2 arguments, text file containing user IDs and passwords
did you verify that the passwd.txt file exists and has the uname and encypted password written to it?
It sounds as though either that file does not exist or is not properly referenced.


The file is there and shows my chosen username plus some encryption. I'll remake the passwd.txt file and see what happens.

edit: no luck

edit v2: The ht.acl file only would take DOS compatible file names. Got it to the prompt now but can't log in.