![]() |
#1 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
Connect calibre-server to internet via Apache
I have installed an internet server with Apache protected by htaccess on a raspberry pi 2. I use COPS but I would like to use calibre-server most friendly.
I have installed Calibre-server on the the raspberry. It works. How to connect an internet URL <Internet IP>/calibre for example to <local-IP>:8080 ? I want to use Apache to keep htAccess and several user logins. ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
Thanks, I tried, but my installation of calibre is problably wrong because I get the Error Message with http://localhost:8080/calibre
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Did you start calibre with the parameter
Code:
--url-prefix /calibre Normally calibre doesn't use any path at all for the landing page. You NEED to use the --url-prefix in order to keep calibre on the same VirtualHost as other services. Last edited by eschwartz; 10-28-2015 at 10:02 AM. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
I think the Rewrite doesn't work.
I am going to fix first this problem. Thanks |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
I have fixed the problem using virtual host and mod_proxy apache
Install mod_proxy mod_proxyhttp Create a virtual host reached by 'http://bibli.<domain> edit the site <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName bibli.<domain> ProxyPass / http://192.168.1.xxx:8080/ ProxyPassReverse / http://192.168.1.xxx:8080/ ProxyPreserveHost On </VirtualHost> Last edited by aurigod; 11-12-2015 at 12:07 PM. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
I put my calibre-server to ArchLinux from Raspian
(problem calibre verion too older) . All works on Archlinux at the moment except "AuthUserFile" however my virtual host with restricted access worked on Raspian. Here is the error message : Code:
404 Not Found The path '/error/HTTP_UNAUTHORIZED.html.var' was not found. Powered by CherryPy 3.8.0 Thanks |
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You can find the calibre-server logs in your calibre configuration directory (which on linux is "~/.config/calibre/").
See: server_access_log.txt server_error_log.txt ... But that appears to be the standard apache error page for 401 UNAUTHORIZED (missing authorization, try again) Last edited by eschwartz; 11-28-2015 at 10:15 PM. |
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
|
![]()
Thanks, it is an Apache problem, but I got another one, sorry :-(
with native password in Calibre-Server / CherryPy / Python with passwords : Code:
TypeError: n must be a native str (got unicode) I tried all this arguments : password toto password=toto password "toto" password="toto" ![]() |
![]() |
![]() |
![]() |
#10 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You will have to install my calibre-git package from the AUR for that.
Code:
yaourt -S calibre-git But most distros only see the "bundled code copy !!!!" part, freak out, and remove it in favor of a system copy of cherrypy. ![]() For interest, here is the ArchLinux bug report for this issue: https://bugs.archlinux.org/task/43382 Debian does the same thing (though I have never bothered filing a bug report with them), which affects derivatives including raspbian and Ubuntu, so I can't really blame Arch specifically... my calibre-git package in the AUR does the right (practical) thing and depends on calibre's own patched copy of cherrypy. Since you are using an apache reverse proxy, it *shouldn't* matter, because you should be able to use apache's auth methods, and the upstream cherrypy bug only affects calibre-server's builtin password handling. Maybe try to figure out what your apache problem is? |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
calibre: cannot connect to X server | cptnemo | Calibre | 1 | 09-02-2013 11:32 PM |
How can i use the calibre server to show my book lists to someone in the internet? | GustavoB | Library Management | 3 | 03-23-2012 12:07 PM |
difficulties getting calibre-server to work with apache/wsgi | adamaymas | Calibre | 4 | 09-23-2011 08:51 PM |
calibre, apache, mod_python content server | rupa | Calibre | 0 | 12-26-2010 10:29 AM |