x-sendfile Questions

3

I am running a Rails 3 site on Ubuntu 8.04 with Nginx 1.0.0 and Passenger 3.0.7. In my Nginx error.log I started seeing the message X-Accel-Mapping header missing quite a lot. Googling lead me to ...
Algarroba asked 4/6, 2011 at 13:32

2

Solved

I have my django served by apache using Vhost. The conf file is the following WSGIPythonPath /srv/www/myproject/testproject/ <VirtualHost *:80> ServerAdmin [email protected] ServerN...
Isherwood asked 8/7, 2014 at 12:12

2

I am new to python and still learning. I created a small python 3.6 Flask webapp on pythonanwhere and found out that send_file() is not working on pythonanywhere servers. I am actively looking for ...
Great asked 29/4, 2018 at 14:36

8

Solved

I'm trying to put together a function that receives a file path, identifies what it is, sets the appropriate headers, and serves it just like Apache would. The reason I am doing this is because I ...
Oxpecker asked 13/9, 2010 at 3:47

3

I have an application serving large (some hundreds of MB) video files and it is working perfectly on desktop browsers, using Rails + X-Sendfile on Apache. An important requirement is that these vi...

4

Solved

I have the following problem. Sounds are hidden from the public folder, cause there are only certain Users who should have access to the sound files. So I made a certain method, which acts like a s...
Cavalcade asked 20/7, 2011 at 9:3

4

Solved

I am trying to set up a site so that users only have access to their own images and audio files. To to this I am using variables in the URL such as: <img src="/public/get_file.php?type=image&a...
Chambliss asked 10/3, 2019 at 18:17

3

I am looking for a way to confirm if X-Sendfile is properly handling requests handed back to the webserver by a script (PHP). Images are being served correctly but I thought I would see the header ...
Euchromatin asked 4/1, 2012 at 20:31

2

Solved

I have a PHP file who's sole job is to check if a user is logged in + if a session variable is set, then delivers a file via nginx X-Sendfile. It works perfectly on any desktop browser, and previou...
Chrysarobin asked 16/9, 2016 at 2:13

5

I installed mod_xsendfile and it seems to have been successful; xsendfile.load appears in /etc/apache2/mods-enabled, and I've found no errors when running my test script. However, every time I run ...
Fineable asked 20/8, 2011 at 18:35

1

Solved

I am trying to configure Rails production server with Apache 2.2, Passenger 4.0.59 and XSendFile 0.12. Application is deployed via Capistrano. Deployed application produces (maybe large) PDF to #{...
Cavie asked 4/3, 2015 at 16:26

3

I am using following code for sending the file in Rails. if File.exist?(file_path) send_file(file_path, type: 'text/excel') File.delete(file_path) end In this I am trying to send the file an...
Penetration asked 14/8, 2013 at 12:42

1

Solved

I am developing a webapp and X-Accel-Redirect header works fine only in files without extension. For some reason, if I add an extension to the file name the X-Accel-Redirect doesn't work. Working ...
Isadora asked 3/6, 2014 at 15:21

0

I am using mod_xsendfile to serve static files using Apache. However, I cannot find a way to get Apache to set a Content-type header based on the extension of the file it serves using xsendfile. Th...
Lekishalela asked 1/5, 2014 at 16:8

1

Solved

I'm trying to make X-Sendfile work for serving my heavy attachments with capistrano. I found that X-Sendfile is not working with symlinks. How could I handle the files inside a folder symlinked by ...

1

Solved

When I upgraded my Lion Server to Mountain Lion, it seems that it removed my mod_xsendfile from apache. I followed the instructions from this web site, but got stuck with a "No such file or direct...
Doodlesack asked 13/8, 2012 at 18:36

3

Solved

I am in a situation, when I have to implement downloading of large files(up to 4GB) from a Web server: Apache 2.4.4 via HTTP protocol. I have tried several approaches, but the best solution looks t...
Garris asked 22/10, 2013 at 18:23

4

Solved

Some time ago I wrote a question regarding the use of temporary files within a rails app. On thar particular case, I decided to use tempfile This causes a problem if I also want to use the x-sendf...
Coaming asked 18/5, 2011 at 10:35

4

Solved

Basically, I would like to send a header X-Sendfile to the browser to send a file, but I don't want to call this if the X-Sendfile is not available or installed on the server. How can I check for t...
Westney asked 2/9, 2012 at 4:25

3

Solved

I'm trying to install the mod_xsendfile Apache Module on Windows (7) x64 (using Apache 2.2) -- yes I'm doomed from the get-go, I know :-). Apparently there is : a) No Win x64 binary for mod_xsendf...
Koonce asked 20/6, 2010 at 9:45

1

Solved

I've been doing some research regarding file downloads with access control, using Django. My goal is to completely block access to a file, except when accessed by a specific user. I've read that wh...
Trinitrotoluene asked 4/9, 2011 at 0:20

1

Solved

I'm running into an issue using xsendfile with my Rails 3 app. I'm using capistrano to manage deployments and in each release, there is a symbolic link to the shared/assets dir (e.g. /var/www/site...
Wira asked 6/4, 2011 at 22:44

1

Solved

Let's say I have a Rails 2.3.2 application fronted by nginx and served by mongrel in which I need to serve a large static file through Rails (to control access to it). I want the Rails app to deleg...
Bruni asked 5/6, 2009 at 6:14

2

I can't seem to find much documentation on X-Sendfile or example code for PHP (there is some rails code). Anyone used it before and would mind giving a quick snippet of code and a brief descriptio...
Hygrometer asked 17/9, 2008 at 5:7
1

© 2022 - 2024 — McMap. All rights reserved.