阿帕奇2.2模块
我想在 Delphi 2010 中创建一个 apache 2(更具体地说是 2.2.21)模块,但是我发现这非常困难,因为 delphi 不再支持将 Web 服务器应用程序创建为 apache 2.X 模块。
我已经搜索了几个小时,但没有运气,更改了一些常量,例如:
MODULE_MAGIC_COOKIE = $041503232;
MODULE_MAGIC_NUMBER_MAJOR = 20051115;
MODULE_MAGIC_NUMBER_MINOR = 0;
基于我在搜索中发现的内容。
在我的 httpd.conf 文件中我添加了:
LoadModule mymodule_module modules/mod_mymodule.so
但是,apache 无法加载它,它说它找不到该模块,但我已将其复制到 apache 的模块文件夹中,我确信它在那里,我相信一些东西模块启动失败,我不知道是什么。
我正在使用:
- Delphi 2010
- Apache 2.2.21
I want to create an apache 2(2.2.21 to be more specific) module in Delphi 2010, however I find it extremely difficult due to the fact that delphi no longer supports creating a web server application as an apache 2.X module.
I've searched for hours but no luck, changed a few constants like:
MODULE_MAGIC_COOKIE = $041503232;
MODULE_MAGIC_NUMBER_MAJOR = 20051115;
MODULE_MAGIC_NUMBER_MINOR = 0;
based on what I've found in my searches.
in my httpd.conf file I've added:
LoadModule mymodule_module modules/mod_mymodule.so
however, apache fails to load it, it says that it cannot find the module, but I've copied it to apache's module folder, I'm certain that it's there, I believe something fails in the initiation of the module, I do not know what tho.
I'm using:
- Delphi 2010
- Apache 2.2.21
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 xxm 项目下制作了一个 Apache 2.2 模块,确实需要做很多工作才能得到图书馆按顺序登记。该项目主要是在 Delphi 7 中制作的,但我尽可能地特别注意使用 AnsiString/WideString,因此它应该在较新的 Delphi 版本下编译和工作。您可以在此处查看源代码:
http://xxm.svn.sourceforge .net/viewvc/xxm/trunk/Delphi/apache/
I've made an Apache 2.2 module under the xxm project, and indeed had to do a lot of work to get the library registration in order. The project is primarily made in Delphi 7, but I've taken care to use AnsiString/WideString specifically wherever possible, so it should compile and work under newer Delphi versions. You can view the source here:
http://xxm.svn.sourceforge.net/viewvc/xxm/trunk/Delphi/apache/