title: XSendFile won't serve the files in Apache 2.2
body: <p>I'm using <a href="https://tn123.org/mod_xsendfile/" rel="nofollow">mod_xsendfile</a> (v0.12) to serve static files where Django is controlling access to the files based on users and permissions.</p>
  
  <p>In my conf file, I have:</p>
  
  <pre><code>XSendFile On
  XSendFilePath e:/documents/
  
  &lt;Directory e:/Documents&gt;
    Order allow,deny
    Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>In my django code, I set the headers like so:</p>
  
  <pre><code>assert(isinstance(filename, FieldFile))
  
  xsendfile = filename.name
  if(platform.system() == 'Windows'):
      xsendfile = xsendfile.replace('\\', '/')
  
  response = HttpResponse()
  response['X-Sendfile'] = xsendfile
  mimetype = mimetypes.guess_type(xsendfile)[0]
  response['Content-Type'] = mimetype
  response['Content-Length'] = filename.size
  </code></pre>
  
  <p>And in my log file I get:</p>
  
  <pre><code>[Fri Oct 22 08:54:22 2010] [error] [client 192.168.20.34] (20023)The given path
  was above the root path: xsendfile: unable to find file:
  e:/Documents/3/2010-10-20/TestDocument.pdf
  </code></pre>
  
  <p>In this version of <code>mod_xsendfile</code>, </p>
  
  <pre><code>XSendFileAllowAbove On
  </code></pre>
  
  <p>generates the error:</p>
  
  <pre><code>Invalid command 'XSendFileAllowAbove', perhaps misspelled or defined by a module
  not included in the server configuration
  </code></pre>
  
  <p>I assumed that was because they have added the <code>XSendFilePath</code> white list.  Anyone else got this to work?</p>