NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jesperf
Oct 17, 2014Aspirant
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:
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
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
- StephenBGuru - Experienced Userthe full path includes the volume name (e.g,, /c/http/restricted/.htpasswd)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!