View Single Post
Old 10-28-2011, 01:34 AM   #478
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by blak4dr View Post
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).

Last edited by ilovejedd; 10-28-2011 at 01:48 AM.
ilovejedd is offline   Reply With Quote