DokuWiki

It's better when it's simple

User Tools

Site Tools


config:xsendfile

This is an old revision of the document!


Configuration Setting: xsendfile

In DokuWiki all media files (e.g. 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.

This option enables sending of this header. Note: if you enable the wrong option here, your images and downloads may no longer work.

  • Type: Number
  • Default: 0

The following options are available:

Value Result
0 No header is sent, all data is delivered by DokuWiki
1 A proprietary lighttpd header is used (for lighttpd < 1.5)
2 A standard X-Sendfile header is used
3 A proprietary Nginx header is used

For X-SendFile support in Apache you need mod_xsendfile. Then enable both, the XSendFile and the XSendFileAllowAbove directive.

Warning: Changing this option could cause unintended behaviour.

See also

config/xsendfile.1249584179.txt.gz · Last modified: 2009-08-06 20:42 by 70.103.232.219

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki