.htaccess, Apache 2.4 and authentication problems

Moderator: Lillian.W@AST

Post Reply
Matteo
Posts: 1
youtube meble na wymiar Warszawa
Joined: Fri Aug 24, 2018 4:23 pm

.htaccess, Apache 2.4 and authentication problems

Post by Matteo »

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
vakvas
Posts: 2
Joined: Fri Oct 19, 2018 3:45 am

Re: .htaccess, Apache 2.4 and authentication problems

Post by vakvas »

Hi,

did you solve this problem please ?
I have the same..

Thanks
Post Reply

Return to “[Official] For AS61XX/62XX Series”