Click to See Complete Forum and Search --> : .htaccess Win2K Apache PHP HELP!


ppowell
04-24-2002, 08:08 PM
I am trying to use .htaccess within Apache 1.3.9 and Windows 2000 for a folder I will call /previewstuff just underneath the docroot.

All files that are housed within that folder require authentication to be viewed, so I put in .htaccess. I am not able to create .htpasswd because I am running Windows 2000 and Windows DOS doesn't recognize the "htpasswd" command (any ideas? anyone?) so I am having to "borrow" .htpasswd instead.

Whenever I try to access the folder whenever I have .htaccess and .htpasswd found, that is, /previewstuff, it causes a severe OS lockup that requires a cold start! If those files are not found everything is ok.

I want to have authentication onto /previewstuff using Apache and Windows 2000, what do you recommend? These are based upon PHP files that dynamically call this particular folder.

Phil

Anon
04-25-2002, 09:30 PM
you can create passwords on windows, look into the bin folder for htpasswd.exe:
this is an extract from a french page on how to create passwords on windows. tried to find out when I started using apache a year ago, and it took me 2 hours to find the page, it's a shame there's so few explanation for apache for win on the net:



c:\apache\bin>htpasswd -c users BugsBunny

Automatically using MD5 format on Windows.

New password: ******* carotte

Re-type new password: ******* carotte

Updating password for user BugsBunny

.htaccess:



AuthName "Bienvenue sur mon serveur web"

AuthType Basic

AuthUserFile "c:/apache/bin/users"

require valid-user