Quote:
Originally Posted by mariosipad
To use your Kobo with Apache you need to enable mod_rewrite in apache.
In my version of Apache I had to do the following:
1 - ssh into my server (as root, so I do not need sudo)
2 - type: a2enmod rewrite
3 - type: /etc/init.d/apache2 restart
and it worked, no more 404 
|
Thanks for the suggestion. I'm on CentOS so the paths are different, but I definitely have mod_rewrite enabled:
Code:
root@server # /usr/local/apache/bin/httpd -l | grep rewrite
mod_rewrite.c
I can now browse the COPS server (index.php) and download documents from the stock Kobo browser without an issue. From the Apache logs:
Code:
[16/Aug/2015:11:45:11 +0200] "GET /cops/download/67/wallabag+-+wallabag.mobi HTTP/1.1" 200 1002415 "-" "Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 (Kobo Touch)"
In the Koreader (latest stable version) OPDS browser, I can browse the Books on my COPS server:
Code:
[16/Aug/2015:11:50:18 +0200] "GET /cops/feed.php?page=10 HTTP/1.1" 200 28063 "-" "LuaSocket 3.0-rc1"
But when I try to download the same document as before (above, from the stock Kobo browser) this time from the Koreader OPDS browser it fails:
Code:
[16/Aug/2015:11:50:28 +0200] "GET /download/67/wallabag+-+wallabag.mobi HTTP/1.1" 404 5627 "-" "LuaSocket 3.0-rc1"
(The '200' in the Apache log means 'OK' and '404' means 'Not Found'.) Note the path in the last log entry.
There should be a '/cops' before '/download' and I can't figure out why this is being dropped. I've tried every permutation of the rewrite rules in .htaccess I can think of.
Any ideas?