View Single Post
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: 101
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