This project is archived and is in readonly mode.

#2718 ✓resolved

add nginx support for :x_sendfile option in file streaming

Reported by Rick | May 25th, 2009 @ 09:06 PM | in 3.0.2

Only Apache is supported right now. We should make it more web server agnostic.


  • Turn the X_SENDFILE_HEADER constant into a method that can be set (keeping the const around for 2.x compatibility).
  • Add config option like: config.action_controller.streaming_header = :apache | :nginx | :lighttpd
  • Support SERVER_SOFTWARE env var for autodetection. Passenger just added support for this.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>