CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   htaccess (Win98) (http://www.codingforums.com/showthread.php?t=5780)

chrisvmarle 09-08-2002 01:25 PM

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

chrisvmarle 10-30-2002 09:57 PM

... 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


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.