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 09-08-2002, 01:25 PM   PM User | #1
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
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 is offline   Reply With Quote
Old 10-30-2002, 09:57 PM   PM User | #2
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
... I've fixed it

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

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
chrisvmarle 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:11 PM.


Advertisement
Log in to turn off these ads.