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

Conversation

echampet
Copy link
Contributor

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

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
@echampet
Copy link
Contributor Author

It doesn't include translations because i first want to see if the feature is ok for you :)
(and the wording)

@cdujeu
Copy link
Member

cdujeu commented Jul 18, 2013

thx, did you sign the CLA already ? (see CONTRIBUTING)

@echampet
Copy link
Contributor Author

yes, and i've tried to sign it again but it says "you have signed this CLA".
I don't know why the big green zone "Good to merge" doesn't appear.

cdujeu added a commit that referenced this pull request Jul 26, 2013
Add X-Accel-Redirect support for Nginx (a sibiling of X-Sendfile).
@cdujeu cdujeu merged commit e57d331 into pydio:master Jul 26, 2013
@cdujeu
Copy link
Member

cdujeu commented Jul 26, 2013

I can see that you have signed on the clahub page. Thanks, seems ok for me.

@echampet echampet deleted the xaccel branch August 27, 2013 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants