Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ... 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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •