NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

jesperf's avatar
jesperf
Aspirant
Oct 17, 2014

Full path to .htpasswd file

I have created a share named "http" to which I redirect default web access. I would like to password-protect some folders in this share. In the folder protected I have created created a .htaccess file with the following content:

AuthUserFile /http/restricted/.htpasswd
AuthType Basic
AuthName "Restricted area"
Require valid-user

and placed a .htpasswd file alongside it.

However, this only shows an "Internal Server Error" without asking for username and password. I guess the problem is that I am not getting the full path to the .htpasswd file right. Do you know what it should be? If I comment out the AuthUserFile and Require lines in .htaccess the web pages are shown.

Best regards
/Jesper

1 Reply

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User
    the full path includes the volume name (e.g,, /c/http/restricted/.htpasswd)

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More