Komeil Tl
Komeil Tl

Reputation: 24

x-sendfile activation in apache2

i have microsoft windows server iis 7 and i have installed apache2 on it the x-sendfile plugin is installed on apache but when i test it by following code

if (in_array('mod_xsendfile', $modules)) {
// If mod_xsendfile is loaded, use X-Sendfile to deliver.. (optional: I have this as failover to use PHP readfile() if mod_xsendfile is unavailable)
header ('X-Sendfile: ' . $pathToFile);
header ('Content-Type: ' . $documentMIME);
header ('Content-Disposition: attachment; filename="' . $actualFilename . '"');
exit;}

nothing happen !!! what's the problem ?

Upvotes: 0

Views: 762

Answers (1)

Edward B.
Edward B.

Reputation: 439

This has already been somewhat answered here by the author of mod_xsendfile himself: mod_xsendfile for Win x64?

I'm assuming you are on Windows 64 bit with Windows 7. He stated there was no build for that although others in that thread got it working. I would read through their comments/replies. Install and make sure the httpd file is modified to load it correctly. Good luck.

Upvotes: 1

Related Questions