Hii All, i loaded mod_xsendfile.so in apche , i added few line in
httpd.conf files

LoadModule xsendfile_module modules/mod_xsendfile.so

XSendFile on

XSendFileAllowAbove on

<VirtualHost * localhost:80>
ServerName src

DocumentRoot C:/InstantRails-2.0-win/rails_apps/src/public/

ProxyPass / http://localhost:3000/

ProxyPassReverse / http://localhost:3000/

</VirtualHost >

now in my rails application i have a streams controller and inside
streams controller i have a function named download ,code for code
download is below

def download

@stream = Stream.find(params[:id])

filename = "#[email protected]}"

response.headers['Content-Type'] = "application/force-download"

response.headers['Content-Disposition'] = "attachment;
filename=\"#{File.basename(filename)}\""

response.headers["X-Sendfile"] = @stream.location

response.headers['Content-length'] = File.size(filename)

render :nothing => true

end

Problem is my rails application still handling this request but i would
like apache to handle this request ,can anyone tell me how i configure
apche to handle this request??
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to