阿帕奇2.2模块

发布于 2025-01-02 12:44:08 字数 570 浏览 5 评论 0原文

我想在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆依然 2025-01-09 12:44:08

我在 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文