I would like to use my NAS for some little webservices activities.
For security reason and for get a simple protection I would like to install my .htaccess and .htpasswd files in the directory "/web".
But I always get an error 500. I tried a lot of things, i.e. changing the path to the .htpasswd.
But the error still persists.
Do you have any suggestions?
Here is my .htaccess file:
Code: Select all
AuthType Basic
AuthName "You need a password for this site!"
AuthUserFile "/volume1/Web/mysite/.htpasswd"
Require valid-user
ErrorDocument 401 "Authorisation Required"
Thanks a lot!