Quote:
Originally Posted by blak4dr
I for one can't change the port number as I run calibre server on a dedicated server with the latest version 0.8.24 and I have two different libraries that use two different port numbers. That dedicated server runs a website as well so port 80 is taken by apache.
I guess I'll just have to wait for Mantano's developpers to figure it out. Calibre being one of the major library software out there that provides opds library support, it would,in my opinion, be a mistake on their part to ignore it.
|
If you're already running Apache, why not create a reverse proxy or virtual host for Calibre? The reason I didn't even notice the issue in the first place was because I was accessing Calibre via reverse proxy.
Calibre command line
Code:
calibre-server.exe -p 8081 --max-opds-items 30 --url-prefix /calibre1 --with-library "C:\path\to\calibre1"
calibre-server.exe -p 8082 --max-opds-items 30 --url-prefix /calibre2 --with-library "C:\path\to\calibre2"
httpd.conf for reverse proxy
Code:
ProxyRequests Off
<Proxy *>
Order Deny,Allow
Deny from all
Allow from 10.0.0.0/255.255.255.0
</Proxy>
<Location /calibre1>
ProxyPass http://127.0.0.1:8081/calibre1
ProxyPassReverse http://127.0.0.1:8081/calibre1
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
<Location /calibre2>
ProxyPass http://127.0.0.1:8082/calibre2
ProxyPassReverse http://127.0.0.1:8082/calibre2
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
OPDS feed links:
http://myipaddress/calibre1/opds
http://myipaddress/calibre2/opds
Obviously, you'd need to change the deny/allow stuff for your network/usage scenario, and the ports/paths/usernames/passwords to reflect your calibre set-up. You would also need to load the necessary dependencies (mod_proxy and mod_proxy_http at a minimum, I forget what else).