It is currently Thu Jan 21, 2021 11:00 am
All times are UTC + 8 hours

.htaccess, Apache 2.4 and authentication problems

.htaccess, Apache 2.4 and authentication problems

Postby Matteo » Fri Aug 24, 2018 4:45 pm

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
Matteo
 
Posts: 1
Joined: Fri Aug 24, 2018 4:23 pm

Re: .htaccess, Apache 2.4 and authentication problems

Postby vakvas » Sat Oct 20, 2018 5:45 pm

Hi,

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

Thanks
vakvas
 
Posts: 2
Joined: Fri Oct 19, 2018 3:45 am

Return to [Official] For AS61XX/62XX Series

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest