View Single Post
Old 01-31-2012, 07:38 PM   #3
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 Fmstrat View Post
I'm going to guess there's no chance of getting a setting added into the interface to specify a directory to run calibre in? Such as setting it to "foldername" would make calibre host in "http://localhost:7070/foldername".
Already exists. No idea how to get to it via GUI but if you launch calibre-server from command-line you can do this:

(assuming https://site.com/calibre)
Code:
calibre-server --url-prefix /calibre
You can also set other options (e.g. username, password, port number, etc) via command line.

On my Apache install, I didn't need to bother with mod_rewrite. I just added the following to my httpd.conf:
Code:
<Location "/calibre" >
    ProxyPass http://localhost:8080/calibre
    ProxyPassReverse http://localhost:8080/calibre
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
</Location>

Last edited by ilovejedd; 01-31-2012 at 07:47 PM.
ilovejedd is offline   Reply With Quote