I'm trying to use calibre2opds to put my library on my server (fedora21). Everything works fine, I can navigate, until I want to download an epub.I get en error 403:You don't have permission to access /Anonyme/Le Livre Sans Nom (41)/Le Livre Sans Nom - Anonyme.epub on this server.I access the server by 192.168.1.21/calibre. Calibre2ops put everything in /mnt/Sardaukar/web/calibreThe HTML files are put by calibre2opds in /mnt/Sardaukar/web/calibre/_catalogand the actual epubs in, for instance /mnt/Sardaukar/web/calibre/Anonyme/Le Livre Sans Nom (41)/Le Livre Sans Nom - Anonyme.epuband the httpd file looks like Alias /calibre /mnt/Sardaukar/web/calibre/_catalog<Directory /mnt/Sardaukar/web/calibre/_catalog>AllowOverride AllOptions Indexes FollowSymLinksRequire all granted</Directory>I did it before, even with an .htaccess and it worked before, but now, I have no idea what is wrong. The permissions on /mnt/Sardaukar/web/calibre are 770, and chown by me:www-usersAfter more research, I found in the error log:[Mon Jun 22 21:06:59.774348 2015] [authz_core:error] [pid 10805] [client 192.168.1.5:51992] AH01630: client denied by server configuration: /var/www/html/Anonyme, referer: http://192.168.1.21/calibre/book_0 >>>/book_41.htmlWhy does it try to read the epub in /var/www/html??
calibre opds error 403 on the epub file
apache httpd;calibre
First off, see the DistrosDefaultLayout - Fedora entry on the Apache WikiLooks like you may need to add a Document Root (to override the default), and since you aren't serving files from the default root, a ServerRoot (again to override the default):Alias /calibre /mnt/Sardaukar/web/calibre/_catalogServerRoot /calibre# Ensure that Apache listens on port 80Listen 80<VirtualHost *:80>    DocumentRoot /Anonyme/    ServerName mypubs.local# Other directives here</VirtualHost><Directory /mnt/Sardaukar/web/calibre/_catalog>    AllowOverride All    Options Indexes FollowSymLinks    Require all granted</Directory>This should make the Entire path read {ServerRoot} + {DocumentRoot}, or {Alias /calibre} + Anonyme ReasoningFor Security Reasons, Apache does not allow directory traversal outside the ServerRoot.  Your link to all your books wasn't a valid path in ServerRoot.  Therefore, I had to tell Apache where your server was being served  If none of this makes sense Read this great in-depth article over on Slicehost.  Since Gentoo isn't your distribution use the Linux Distros Link in the Navigation to find the same article I linked for your particular distribution.  As a matter of learning and practice, I would keep your epubs in a safe place, and do the following:Delete my hackish httpd.conf file.Follow the guide I linked to enable/configure Virtual Hosting Properly.Add your epubs to the VirtualHost Configuration you created in Step #2.