01-31-2012, 03:19 PM | #1 |
G:RSS-Web Creator
Posts: 93
Karma: 14
Join Date: Aug 2010
Device: Kindle 3, PW, Nexus 4,10
|
Wrapping Calibre in SSL, Issue.
Hi,
I'm trying to use rewrite rules to wrap Calibre in SSL so that I can open it up to access when I'm on the road. However, I'm receiving some errors. Using the latest version of Calibre, and I've tried this using Apache and this guide: http://manual.calibre-ebook.com/server.html, and I've tried it using IIS, both with the same results. The page loads fine, but when I go to view newest books or browse books, I get: Code:
Error: error Object.createException (https://server/calibre/static/stacktrace.js:81:18) Object.run (https://server/calibre/static/stacktrace.js:66:25) printStackTrace (https://server/calibre/static/stacktrace.js:57:62) render_error (https://server/calibre/static/browse/browse.js:134:18) error()@https://server/calibre/static/browse/browse.js:246:43 Function.handleError (https://server/calibre/static/jquery.js:5304:12) XMLHttpRequest. (https://server/calibre/static/jquery.js:5210:13) Any thoughts? Thanks, Ben |
01-31-2012, 03:29 PM | #2 |
G:RSS-Web Creator
Posts: 93
Karma: 14
Join Date: Aug 2010
Device: Kindle 3, PW, Nexus 4,10
|
Of course I would spend forever on this and then figure it out right after I post. Calibre's Javascript calls use root urls, such as "/browse", and while the Rewrite rules can modify those in the HTML code, they can't modify the JS variables.
Therefore, for anyone trying this, you can't set up an "https://site.com/calibre" wrapper to "http://localhost:7070". It can only be "https://calibre.site.com/". Since Kindles require a validated cert, you would have to get a separate cert specific to that hostname. 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". Thanks! Ben |
Advert | |
|
01-31-2012, 07:38 PM | #3 | |
hopeless n00b
Posts: 5,111
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:
(assuming https://site.com/calibre) Code:
calibre-server --url-prefix /calibre 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. |
|
01-31-2012, 10:29 PM | #4 | |
G:RSS-Web Creator
Posts: 93
Karma: 14
Join Date: Aug 2010
Device: Kindle 3, PW, Nexus 4,10
|
Quote:
Thanks, Ben |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Justified word paragraph not wrapping in mobi | wlloydw | Conversion | 0 | 03-05-2011 03:03 PM |
Line un-wrapping Factor | jjansen | Calibre | 6 | 08-18-2010 12:21 AM |
Images and text wrapping | steveboyett | Calibre | 3 | 07-20-2010 08:26 PM |
Stop line wrapping at quotes at the end of a paragraph | sherman | ePub | 6 | 05-13-2010 02:52 PM |
How to deal with irregular hard-wrapping on a large scale? | Robotech_Master | Workshop | 7 | 04-27-2009 08:06 PM |