Apache 2.2 module

I want to create an apache 2 (2.2.21, more specific) module in Delphi 2010, however I find it extremely complicated because delphi no longer supports creating a web server application as an apache 2.X module.

I searched for a clock, but no luck, changed a few constants, for example:

MODULE_MAGIC_COOKIE = $041503232; MODULE_MAGIC_NUMBER_MAJOR = 20051115; MODULE_MAGIC_NUMBER_MINOR = 0; 

depending on what I found in my searches.

in my httpd.conf file that I added:

 LoadModule mymodule_module modules/mod_mymodule.so 

however apache cannot load it, it says that it cannot find the module, but I copied it to the apache module folder, I'm sure it is there, I think that something does not work when the module starts, I don’t know what it is.

I use:

  • Delphi 2010
  • Apache 2.2.21
+4
source share
1 answer

I created the Apache 2.2 module as part of the xxm project and really had to do a lot of work to get the library registration in order. The project was mainly done in Delphi 7, but I made sure to use AnsiString / WideString where possible, so it should compile and work in new versions of Delphi. You can see the source here:

http://xxm.svn.sourceforge.net/viewvc/xxm/trunk/Delphi/apache/

+1
source

Source: https://habr.com/ru/post/1394929/


All Articles