用于 Win x64 的 mod_xsendfile? [英] mod_xsendfile for Win x64?

查看:43
本文介绍了用于 Win x64 的 mod_xsendfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows (7) x64(使用 Apache 2.2)上安装 mod_xsendfile Apache 模块——是的,我从一开始就注定失败,我知道 :-).显然有:

a) mod_xsendfile 没有 Win x64 二进制文件,只有来自 模块网站 的 Win32 二进制文件>

b) ApacheLounge

的 apx 没有 Win x64 二进制文件

我已经尝试了通常的 LoadModule xsendfile_module modules/mod_xsendfile.so 但半明显的错误(httpd:C:/Apache/conf/httpd.conf 的第 127 行的语法错误.conf:无法将 C:/Apache/modules/mod_xsendfile.so 加载到服务器:找不到指定的模块.) 发生,它不兼容 Win x64.

问题仍然存在——如何为 x64 构建模块,这可能吗?我有 VS 和任何可能需要的工具.

我只是想看看这是否会提高我的受 Rails 保护的附件下载速度 - 目前对于简单图像的速度非常快.

先谢谢你!

解决方案

我是 mod_xsendfile 的作者.

我仅出于礼貌提供 win32 二进制文件.我仍然建议您从源头构建自己.这样你就可以确保二进制文件没有被篡改,甚至我也没有 :p

目前没有来自 Apache 基金会的官方 Win64 Apache2(或 2.2)版本.由于我针对官方二进制文件测试了我的构建,因此一旦基金会发布官方 Win64 二进制文件,我无法确定这些二进制文件是否能正常工作.因此,我没有构建 Win64

如果您不是(在 Windows 情况下)Visual Studio 的新手,那么从源代码构建非常简单.二进制文件 ZIP 和/或我的 github 存储库包含您可以导入到 Apache 解决方案中的项目文件.有人告诉我,即使是免费的 Visual Studio Express 也足以进行工作构建.事情是开源的.如果有意外的可移植性问题,我欢迎补丁 ;)

作为最后的手段,您仍然可以在 Win64 机器上运行官方的 Win32 apache + mod_xsendfile.

I'm trying to install the mod_xsendfile Apache Module on Windows (7) x64 (using Apache 2.2) -- yes I'm doomed from the get-go, I know :-). Apparently there is :

a) No Win x64 binary for mod_xsendfile, just a Win32 binary from the module's website

b) No Win x64 binary for apxs from ApacheLounge

I've tried the usual LoadModule xsendfile_module modules/mod_xsendfile.so but the semi-obvious error (httpd: Syntax error on line 127 of C:/Apache/conf/httpd.conf: Cannot load C:/Apache/modules/mod_xsendfile.so into server: The specified module could not be found.) occurs, it's not Win x64 compatible.

The question remains -- how does one build the module for x64, is that even possible ? I have VS and any tools that might be required.

I just wanted to see if this would improve my Rails protected attachment download speed - currently getting quite ghastly speeds for simple images.

Thank you in advance !

解决方案

I'm the author of mod_xsendfile.

I provide win32 binaries only as a courtesy. I still recommend you build yourself from the source. That way you can be sure the binary isn't tampered with, not even by me :p

There are currently no official Win64 Apache2 (or 2.2) builds from the Apache Foundation. Since I test my builds against the official binaries I cannot be sure the binaries will work once the foundation releases official Win64 binaries. Hence no Win64 builds from me

Building from the source is pretty much straight-forward if you aren't novice to (in the Windows case) Visual Studio. The binaries ZIP and/or my github repo contain project files you may import into your Apache solution. I was told even the free Visual Studio Express should be enough to do working builds. The thing is open source. Should there be unanticipated portability problems, I welcome patches ;)

As a last resort you can still run the official Win32 apache + mod_xsendfile on a Win64 box.

这篇关于用于 Win x64 的 mod_xsendfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆