Rails 3.1.1 HTTP streaming with Apache + Passenger

In Railscasts on HTTP streaming, some commentators have confirmed that it is possible to do HTTP streams with Apache + Passenger, but, strangely enough, I cannot find any instructions via Google.

In addition, the Rails document did not provide any instructions. All of the detailed instructions everywhere apply to the Unicorn. I should not be the only one who would like to translate HTTP on top of Apache and Passenger. Help me please.

+5
source share
2 answers

HTTP streaming is more accurately known as Chunked Transfer Encoding .

, ( ):

Ruby 1.9.x

Ruby 1.9

, , HTTP-

Passenger

__

, HTTP 1.1 TE.

, - nginx, -.

, .

+1

Apache . httpd.conf:

<VirtualHost *:80>
  ServerName www.my.site.com
  DocumentRoot /var/rails/myapp/public    
  <Directory /var/rails/myapp/public>
     # This relaxes Apache security settings.
     AllowOverride all
     # MultiViews must be turned off.
     Options -MultiViews
     # Enable response streaming
     PassengerBufferResponse off
  </Directory>
</VirtualHost>
0

All Articles