View Single Post
Old 05-23-2017, 12:45 PM   #1559
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
[I had some internet (ISP) problems today. Some sites like this one refused to load. Seems to be fixed now.]

1 - to use .htaccess you might need the AllowOverride All statement like you have now.

2 - I would slightly change the lines you put in apache.conf, but it should work like you have it now.
Code:
<Directory "/share/Web/COPS111">
    Options FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
    AuthType Basic
    AuthName "RESTRICTED AREA"
    AuthUserFile /share/Web/COPS111/.htpasswd
    Require valid-user
</Directory>
3 - to make a change in an apache config file work, apache needs to either be restarted or the config files should be reloaded. Rebooting the QNAP has the same effect.

This all probably explains (hopefully) why authentication did not work. I hope it does now.

Quote:
Did I mention I hate Apache...?
Well I have the same with NGINX. For me apache usually works after a lot of
while NGINX does not.

Last edited by mariosipad; 05-23-2017 at 12:46 PM. Reason: typo
mariosipad is offline   Reply With Quote