@superturrican
@mariosipad
Quote:
Originally Posted by superturrican
I updated my COPS install to the latest one and now I get a 404 on all file downloads. pages display okay, and the built-in epub viewer displays the books correctly, but the download links all give the same 404 error and the error log says "No such file or directory"
[...]
|
Same thing here, only I installed v1.0.1 from scratch. Machine is PiB+/Raspbian (kinda)/Apache2, accessed from Firefox on windows/Chrome on Android/Kobo Aura browser.
Oh, and I'm new here, so hi everybody

[couple of hours later]
after searching this thread and googling around, I've found that my /etc/apache2/apache2.conf (may be httpd.conf elsewhere) prevented the loading of .htaccess files, including the one provided by COPS installation (/var/www/ebooks/.htaccess).
Editing the AllowOverride directive to "All" in the following section:
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
fixed the problem.
However, I would like to include the .htaccess instructions in the apache2.conf file, instead of pointing to the .htaccess itself (which would be accessed every time a file is requested). Does anybody know how to do that?
Appending the whole .htaccess content inside apache2.conf, wrapped in
Code:
<Directory /path/>
[...]
</Directory>
Didn't work.