Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-24-2017, 04:06 PM   #1
twinkybot
Member
twinkybot began at the beginning.
 
twinkybot's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2017
Device: Tolino Vision 2
Redirection with Apache and errors

Hello,

I have an Ubuntu 16.04 system with Apache. All traffic is redirected to https.

When I call the URL for Calibre without the port

Then I am getting the following error:

Unhandled exception in state: State: do_ssl_handshake Client: 127.0.0.1:45278 Request: WebSocketConnection
Traceback (most recent call last):
File "site-packages/calibre/srv/loop.py", line 565, in tick
File "site-packages/calibre/srv/loop.py", line 177, in do_ssl_handshake
SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:590)

Could anyone give me some hints what is happening?

My ssl conf (which is working for other services)
AllowEncodedSlashes On
RewriteEngine on
#RewriteRule ^/calibre/(.*) http://localhost:<PORT>/calibre/$1 [proxy]
RewriteRule ^/calibre/(.*) http://localhost:<PORT>/$1 [proxy]
RewriteRule ^/calibre http://localhost:<PORT>/ [proxy]
#RedirectMatch permanent ^/calibre$ /calibre/
twinkybot is offline   Reply With Quote
Old 07-24-2017, 09:50 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by twinkybot View Post
Hello,

I have an Ubuntu 16.04 system with Apache. All traffic is redirected to https.

When I call the URL for Calibre without the port

Then I am getting the following error:

Unhandled exception in state: State: do_ssl_handshake Client: 127.0.0.1:45278 Request: WebSocketConnection
Traceback (most recent call last):
File "site-packages/calibre/srv/loop.py", line 565, in tick
File "site-packages/calibre/srv/loop.py", line 177, in do_ssl_handshake
SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:590)

Could anyone give me some hints what is happening?

My ssl conf (which is working for other services)
AllowEncodedSlashes On
RewriteEngine on
#RewriteRule ^/calibre/(.*) http://localhost:<PORT>/calibre/$1 [proxy]
RewriteRule ^/calibre/(.*) http://localhost:<PORT>/$1 [proxy]
RewriteRule ^/calibre http://localhost:<PORT>/ [proxy]
#RedirectMatch permanent ^/calibre$ /calibre/
https://manual.calibre-ebook.com/ser...-other-servers

Quote:
If you have setup SSL for your main server, you should tell the calibre server to use basic authentication instead of digest authentication, as it is faster. To do so, pass the --auth-mode=basic option to calibre-server.]
bernie

Last edited by BetterRed; 07-24-2017 at 10:10 PM.
gbm is offline   Reply With Quote
Advert
Old 07-24-2017, 11:29 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you use apache then you should terminate your SSL connection on apache and have the calibre server listen via plain http. And enable basic auth, as gbm pointed out.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problematic uri, containing a redirection atlantique Recipes 4 05-03-2012 01:02 AM


All times are GMT -4. The time now is 08:12 AM.


MobileRead.com is a privately owned, operated and funded community.