View Single Post
Old 05-23-2017, 02:05 PM   #1560
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
[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.


Well I have the same with NGINX. For me apache usually works after a lot of
while NGINX does not.
You got that right!

I still have the Apache setup, so will give your idea a try. But I relented and installed the latest QApache, which was what I was using before when I had cops in /share/htdocs.

And, I actually had it working for two users, briefly, then I screwed something up. The last time I had it fully working, I had to put all the cops files in /share/htdocs. It appears the correct way is to have it in /share/htdocs/COPS111 and that is where I run into problems.

But, working my way in the old learn-by-doing thing, LoL.

Question: How does COPS save individual user settings? Cookies?? Because everytime I go back into a different user, the settings are all gone. They seem to stick if I don't clear the cache. If this is the case, it means the user cannot clear their local caches and delete cookies, right? Tell me it ain't so!!
MontyJ is offline   Reply With Quote