-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement Nginx X-Accel-Redirect #6
Comments
I have added a new configuration variable to enable this header.
or
|
Right? server { I haven't enough experience with nginx. I used it only for a proxy of request |
For just proxification you should move root directive to server block, or directly to upload location. See my conf: http://pastebin.com/2GuunCPc |
Btw, It requires additional rules for securing application folders, that done with .htaccess files.. |
ok, thanks! it is possible I will write on a ostora site for an example your nginx conf? |
Of course : ) I have added restrictions for system and upload directories, and removed PHP values(it was added for my own configuration, to increase limits, but avoid changing php.ini or FPM configuraion) New conf here: http://pastebin.com/0DdjBAAt |
by the evening i will change! |
Allows to deliver static file by nginx server and avoids PHP memory consuming(for biiig files) on private\controlled downloads
http://wiki.nginx.org/XSendfile
Requires an additional location in nginx serverconfiguration
The text was updated successfully, but these errors were encountered: