Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Add X-Accel-Redirect support for Nginx (a sibiling of X-Sendfile) #240

Merged
merged 1 commit into from
Jul 26, 2013

Commits on Jul 18, 2013

  1. 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
    Etienne CHAMPETIER committed Jul 18, 2013
    Configuration menu
    Copy the full SHA
    67549c7 View commit details
    Browse the repository at this point in the history