@MontyJ
Quote:
Originally Posted by MontyJ
@mariosipad,
..........
So I am a little unclear of your intentions on that. I will, for now, proceed with your instructions exactly and remove both lines and put them in a new file.
...........
|
We seem to have a slight miscommunication here.
I meant that you should remove only the second line from .htaccess in ./web/cops/ not the line that was there already as well. Can you please put this first line (RewriteEngine On) back in this file in the same place where it was.
The second .htaccess file should now be in ./web.
You should be aware of the fact that I am using as little as possible of the capabilities of PageKite and try to guide (or "push) you in the direction of a setup (not unlike my own) that I know works. QNAP and Synology sometimes make a otherwise rather straightforward solution in "regular" Linux (Debian/Ubuntu) sometimes a bit "complicated", mainly due to a different directory structure and different file names (where you least expect it).
Now on to setting up username/password for your users (with apache).
Please follow these steps:
1 - edit ./web/cops/.htaccess
Remove from the bottom few lines the # so that this part of the file now looks like
Code:
# Uncomment if you wish to protect access with a password
###########################################
# If your covers and books are not available as soon as you protect it
# You can try replacing the FilesMatch directive by this one
# <FilesMatch "(index|feed)\.php">
# If helps for Sony PRS-TX and Aldiko, beware fetch.php can be accessed
# with authentication (see $config ['cops_fetch_protect'] for a workaround).
###########################################
<FilesMatch "\.php$">
AuthUserFile "./.htpasswd"
AuthGroupFile /dev/null
AuthName "Secure access"
AuthType Basic
Require valid-user
</FilesMatch>
2 - make .htpasswd file
- from ./web/cops type at the prompt:
Code:
htpasswd -c .htpasswd monty
then answer the questions with a (very)secret password (2x).
- then to add a second user: from ./web/cops type at the prompt:
Code:
htpasswd .htpasswd user1
then answer the questions with a different (very)secret password (2x)
- for additional users repeat the previous step but maybe test first with just 2 or 3 users.
Again fingers crossed.