Is mod_xsendfile deprecated?

I know this is a stupid question, but I could not find the Information anywhere. I am maintaining a website for an old client and up until now I used the X-SENDFILE header to control the Access to a rather large file.

His Server administrators now updated Apache which broke the website. After doing some research I found out, that I had to remove the XSendFileAllowAbove Option and instead add XSendFilePath. Since this option apparently can not be set in the .htaccess file (I read about that, I also tried it to be sure) the server administrators have to add it directly. However, they refuse to do that and say that mod_xsendfile is deprecated. I searched to verify that but can not find it anywhere.

Also, they refuse to suggest an alternative, so if you guys know for any I¨d be thankful :).

The file is too large to be served with PHP (at least not easily), I have no access to the server, I can only access the website code.

EDIT

As soon as I posted the question I found this post, which seems to at least suggest that mod_xsendfile is working perfectly well in Apache 2.4: https://superuser.com/questions/1035459/is-mod-xsendfile-not-compatible-with-apache-2-4 This does not answer my question completely, but at least it's a start and may help someone searching for the same and finding this question.


Solution 1:

Deprecated here doesn't mean it won't work with Apache 2.4, but that it's against their own policy of quality software. After all, mod_xsendfile:

  • is not a standard Apache module officially supported.
  • needs to be compiled separately; not in any repository.
  • was originally designed for Apache 2 & 2.2.
  • hasn't been maintained since 2011; for 6 years.

Although the module is simple, using that kind of module may expose the system to security threats. Therefore, the limitation seems reasonable, and you definitely wouldn't get the module on any shared hosting, either.

Hopefully someone here can suggest alternative solutions!