Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: X-Sendfile/X-Accel-Redirect #896

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

docs: X-Sendfile/X-Accel-Redirect #896

wants to merge 2 commits into from

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Jul 2, 2024

Closes #884.
Needs caddyserver/caddy#6429.

@Koc
Copy link

Koc commented Jul 27, 2024

how to deal with that if we're storing files in AWS S3-like storages?

@nicolas-grekas
Copy link

nicolas-grekas commented Sep 5, 2024

It looks like this is missing sending the X-Accel-Mapping header that Symfony needs to generate the correct redirect.
See https://mattbrictson.com/blog/accelerated-rails-downloads for how this works on RoR (Symfony behaves the same).

@withinboredom
Copy link
Collaborator

@nicolas-grekas If I am understanding correctly, this is a header sent from the webserver to PHP?

@nicolas-grekas
Copy link

@withinboredom correct, to advertise the mapping between URL prefix and internal path.

@withinboredom
Copy link
Collaborator

I think this is doable, just needs to be documented. I'll take a look later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"no such file or directory" with handle_response
5 participants