Questions tagged [x-sendfile]

non-standard HTTP header supported by Apache to offload the process of serving large static files from dynamic scripts (eg: PHP, Python, Perl) after they have performed the necessary authorization or restriction logic.

155 questions
0
votes
0 answers

Rails 3.2 xsendfile not working

I have to download static files which need authentication. I am following http://makandracards.com/makandra/990-speed-up-file-downloads-with-rails-apache-and-x-sendfile and https://tn123.org/mod_xsendfile/ I have set…
shweta
  • 8,019
  • 1
  • 40
  • 43
0
votes
1 answer

Problem downloading large files with Rails, Nginx (with x-accel-redirect) and Apache(x-sendfile)

We have a big problem with downloads when the size is over than 1gb. We are using Rails 2.3.5, passenger 2.2.9 on Amazon EC2 2gb with 2gb of Ram and Fedora 10. Files are stored on /mnt/files, project is on /mnt/www/project We tried to send files…
DAddYE
  • 1,719
  • 11
  • 16
0
votes
1 answer

Will Cloudflare still cache files behind xsendfile

I have set up a Wordpress Woocommerce storefront. I want to set up downloadable products which will be downloaded via XSendFile module. However, my download files are quite big (50mb approx) and so am planning to set up Cloudflare to cache the…
user791793
  • 413
  • 1
  • 6
  • 19
0
votes
2 answers

mod-xsendfile 404 caused by SELinux

Ok. Wanted to share this - took me 10 hours to figure out. I had properly installed mod-xsendfile, following the good instructions here. I also configured xsendfile correctly in my /etc/httpd/conf/httpd.conf file, adding the settings: …
Ryan S
  • 195
  • 2
  • 11
0
votes
1 answer

rails assets image not find after enalble apache x-sendfile

I've a problem in my website. It's made using: ruby 1.9.3 rails 3.2.9 and it's hosted by apache 2 server. The server worked fine, but yesterday i apport a change in my code. i needed to add a big files downloader and for this i used the…
0
votes
1 answer

Using X-Send module to serve css, javascript and image files

I'm building a file server. It is currently serving downloadable files (.doc, .zip) perfectly using X-Send. It is possible to serve text based (css/javascript) or image files using x-send? My understanding is this the most efficient method…
hendr1x
  • 1,470
  • 1
  • 14
  • 23
0
votes
2 answers

symfony2 store uploaded file non rootweb

I have problem with uploading files, I'm saving uploaded files in a non public folder (non webroot folder), and then I want to get the webPAth of all uploaded files to use them in a video gallery. $videos =…
Bil4l
  • 5
  • 4
0
votes
1 answer

X-SendFile not working on centos

i have the following intallation on cents 6. apache version :Apache 2.0 httpd-tools-2.2.15-28.el6.centos.x86_64 httpd-devel-2.2.15-28.el6.centos.x86_64 httpd-2.2.15-28.el6.centos.x86_64 . in httpd.conf i have added the line: LoadModule…
Black Sea
  • 124
  • 1
  • 9
0
votes
1 answer

connections dropped

I am using lighttp 1.5 on CentOS release 5.2. The site is a free stock photo site that allows users to download files. Files are around 3-6MB each. The download script is a php script that looks like this. set_time_limit(0); //... header(…
0
votes
1 answer

How to install mod_xsendfile on mappstack

FINAL UPDATE: Bitnami will include mod_xsendfile to the MAPP stack as of the next release planned for somewhere around April 8, 2013. I have tryed compiling and installing mod_xsendfile on my mappstack5.4.12-0. I have tryed two methods, but I have…
0
votes
1 answer

how to protect a send_file action with cancan

I can't seem to approve authorization for the web_videos_display action. I can make it work by using the skip_authorize_resource but then any user can access the URL for the file by knowing the :id. I need to require access to the asset to "see" the…
0
votes
1 answer

Python urllib2 not obtaining full response (PDF)

I am trying to download a PDF by hitting a URL. Say my URL looks like this: http://foo.bar/this/downloads/pdf If I hit the URL directly, the browser downloads the PDF, with no problem. However, if I try to get the PDF using urllib2.urlopen I get an…
Phil
  • 6,686
  • 2
  • 19
  • 25
0
votes
1 answer

Content-type problems with Django under Apache, with static HTML + CSS files?

I am trying to serve static files (HTML + CSS) under Django. (Later on, I will password protect them). However, I am getting the wrong content-type. HTML files are downloaded, not displayed. My webserver is Apache, and I'm running this under…
Joseph Turian
  • 15,430
  • 14
  • 47
  • 62
0
votes
2 answers

x_sendfile does not load

I'm trying to install x_sendfile in apache web server on a Mac OS X Server. Everything seems fine with the installation and the httpd.conf is configured with "LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so" and "XSendFile ON". If I run…
einord
  • 2,278
  • 2
  • 20
  • 26
0
votes
1 answer

mp3 sent OK, but mp4 not (Django & X-Sendfile)

Apon clicking play on my web page, an mp3 file is sent from the server and in the browser see only 3 requests sent. I added to the response X-Sendfile header, and the responds arrived without it so I understand mod_xsendfile is configured…
reakh
  • 111
  • 10
1 2 3
10
11