1. If you enable web server on your NAS you wil get apache 2.4 as a server, now you may add your own directory/Project under server roor, it works.
2. Now I want to add basic authentication via .htaccess file, it does not work:
- you can not see error logs as is's configured to go under /dev/null
- after enabling error logs you become many errors, because all apache error templates configured for apache 2.2, not 2.4
- you may correct these templates and finally get an error message about unknown directive AuthName in your .htaccess file
- I've tried to check enabled modules, I've enabled additionally athn_core module, but still not success...
so, anybody can tell me how to configure this simple basic authentication?
<FilesMatch "\.php$">
AuthUserFile /[path to your dir]/.htpasswd
AuthName "Secure"
AuthType Basic
Require valid-user
</FilesMatch>
P.S. Asustor 6202, ADM 3.1