Helpful Information
 
 
Category: Apache configuration
htaccess (Win98)

Hi All,

A while ago it all used to work, but now it doesn't and I can't get it working again :(

I have 2 dirs I wan't to protect
c:\web\fileman2
c:\website\prive

In my httpd.conf are these parts:
<Directory c:/web/fileman2>
AuthType Basic
AuthName Fileman
AuthUserFile c:/web/.htpasswd
require valid-user

Options All Indexes FollowSymLinks MultiViews ExecCGI

DirectoryIndex fileman.cgi

AllowOverride All

</Directory>

<Directory c:/website/prive>
AuthType Basic
AuthName School_Documents
AuthUserFile c:/web/.htpasswd
require valid-user
Options All FollowSymLinks MultiViews ExecCGI
</Directory>

c:\website is my site root and c:\web is an other dir with files wich shouldn't be very accessable by the web.

I have my .htpasswd stored in c:\web, but in c:\website is doesn't work either (even if I change it in httpd.conf ;))

So, can someone help me out?

Mzzl, Chris

... I've fixed it :D

It took some time for me to find out, but I did it :p

For those who even care; what I did is, I've re´nstalled my PHP Module and this solved my problem with the header always returning 500 Internal Server Error. With this header already set it was impossible to send 401 Authorization Required, so the browser didn't know authorization was required and didn't popup a "enter name and password" alert.

Mzzl, Chris










privacy (GDPR)