hmalphettes/kibana-proxy — pull request #2 by shao1555 (2013-11-05 04:25:45+00:00)
Title: FIX: hanging POST requests when server runs behind reverse proxy

hanging "POST /__es/search" request in under condition. to avoid this problem, just use bodyParser and connect-restreamer.

**Environment**

- Apache 2.4.6
- Phusion Passenger 3.0.23

**Apache Configuration**
```
LoadModule passenger_module /opt/passenger/passenger-4.0.23/buildout/apache2/mod_passenger.so
PassengerRoot /opt/passenger/passenger-4.0.23
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby

ServerName kibana.example.com

DocumentRoot /deploy/kibana-proxy/public/
SetEnv APP_ID 000000000000.apps.googleusercontent.com
SetEnv APP_SECRET blah...
SetEnv AUTHORIZED_EMAILS *@example.com
SetEnv ES_URL http://localhost:9200
RequestHeader set X-Forwarded-Proto https

Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AuthType None
Require all granted

```