This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add X-Accel-Redirect support for Nginx (a sibiling of X-Sendfile)
For it to work you have to modify your nginx conf to send X-Accel-Mapping header using -> proxy_set_header X-Accel-Mapping /var/www/ajaxplorer/data/=/data/; or -> fastcgi_param X-Accel-Mapping /var/www/ajaxplorer/data/=/data/; and you have to use the "internal" keyword -> location ~ /data/ { internal; } The X-Accel-Mapping idea come from the rails world
- Loading branch information
Etienne CHAMPETIER
committed
Jul 18, 2013
1 parent
19df26c
commit 67549c7
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters