config:xsendfile
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:xsendfile [2012-03-08 22:02] – 87.150.137.3 | config:xsendfile [2015-05-06 06:51] (current) – More detailed instructions for nginx. PatrickBrown | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configuration Setting: xsendfile ====== | ====== Configuration Setting: xsendfile ====== | ||
- | In DokuWiki all media files (e.g. [[wiki:de:images]]) are delivered using a PHP script to check access restrictions and in the case of images, resize them. This requires more resources than delivering them by the webserver alone. Several webservers make it possible to take over delivery from a script once it has done its checks. This is done by sending a certain HTTP header. The header itself is dependent on the particular webserver. | + | In DokuWiki all media files (e.g. [[: |
This option enables sending of this header. Note: if you enable the wrong option here, your images and downloads may no longer work. | This option enables sending of this header. Note: if you enable the wrong option here, your images and downloads may no longer work. | ||
Line 16: | Line 16: | ||
| | | | ||
- | For X-SendFile support in Apache you need [[http://tn123.ath.cx/ | + | For X-SendFile support in Apache you need [[https://github.com/nmaier/ |
+ | |||
+ | Accelerated downloads in [[http:// | ||
+ | <code bash> | ||
+ | location ~ ^/ | ||
+ | internal; | ||
+ | root /public; | ||
+ | } | ||
+ | </ | ||
+ | The '' | ||
+ | <code bash> | ||
+ | location ~ ^/ | ||
+ | root /public; | ||
+ | # FastCGI options... | ||
+ | } | ||
+ | location ~ ^/ | ||
+ | internal; | ||
+ | alias / | ||
+ | } | ||
+ | </ | ||
{{: | {{: |
config/xsendfile.1331240548.txt.gz · Last modified: 2012-03-08 22:02 by 87.150.137.3