Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2011, 02:47 AM   #1
Caleb666
Zealot
Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.
 
Posts: 100
Karma: 400000
Join Date: Jul 2010
Device: iPad 2 64GB
Content Server with Apache Reverse Proxy

Hi,

I've been running the calibre content server using Apache's Reverse Proxy (mod_proxy), and I've been getting a lot of problems, mainly with getting "Bad Gateway" the first time I browse to the server, or not having certain images served properly and today I finally realized why!

It seems that CherryPy doesn't support HTTP/1.1 Keep-Alives properly so many of my issues were fixed by forcing Apache to use HTTP/1.0 with no keep-alives:

This is from httpd.conf:
Code:
<Location /books>
	Order Deny, Allow
	Deny from all
	Allow from all
	
	ProxyPass http://localhost:8083/books
	ProxyPassReverse http://localhost:8083/books
	SetEnv force-proxy-request-1.0 1
	SetEnv proxy-nokeepalive 1
</Location>
Hope this helps to those who are having similar problems.
Caleb666 is offline   Reply With Quote
Old 08-29-2011, 04:20 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Caleb666 View Post
I've been running the calibre content server using Apache's Reverse Proxy (mod_proxy), and I've been getting a lot of problems, mainly with getting "Bad Gateway" the first time I browse to the server, or not having certain images served properly and today I finally realized why!

It seems that CherryPy doesn't support HTTP/1.1 Keep-Alives properly so many of my issues were fixed by forcing Apache to use HTTP/1.0 with no keep-alives:...

Hope this helps to those who are having similar problems.
I use orenosp for my reverse proxy. I've never seen this problem.
Starson17 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
Content server apache reverse proxy issue bossanova808 Calibre 13 09-16-2011 09:38 AM
Content server, IIS proxy, and gzip compression abrinton Calibre 9 04-08-2011 01:26 PM
calibre, apache, mod_python content server rupa Calibre 0 12-26-2010 10:29 AM
Setting up proxy server pat.indie enTourage Archive 1 07-06-2010 12:01 AM


All times are GMT -4. The time now is 01:13 PM.


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