08-27-2011, 02:47 AM | #1 |
Zealot
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> |
08-29-2011, 04:20 PM | #2 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
Advert | |
|
|
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 |