Skip to content

Sendfile support and configuration #1046

Answered by lcrilly
sevdog asked this question in Support
Discussion options

You must be logged in to vote

A static share won't work on its own.

The typical use case is for the application logic to handle access control and if all is good then send the location of the resource in its response.

Instead of sending a 302 response with a Location header. The application can send a 200 response with the location in the X-Accel-Redirect header. This instructs the proxy to just send the resource directly.

Unit could potentially support this with chaining.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ac000
Comment options

ac000 Jan 8, 2024
Collaborator

@lcrilly
Comment options

lcrilly Jan 8, 2024
Collaborator

Answer selected by sevdog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants