Creating DataSnap Apache modules
One of the most awaited Delphi features by server-side Delphi developers is the support for the building of Apache web server modules. Since Delphi XE6, Delphi has been able to generate Apache modules, and this is very good news! The most recent Apache Versions, are 2.0, 2.2, and 2.4, are supported.
An Apache module is only compatible with the specific version for which it has been compiled. So, be sure about the Apache version you have to deploy your module before you create the project. However, it's possible to change the target Apache version by just changing a unit name.
Getting ready
In this recipe, we'll create a very simple REST service, with only one method returning a list of people. The service will be built using the Embarcadero DataSnap framework and the service itself will be packaged as an Apache web server module. The real goal of this recipe is to show you how to use the Delphi strength in creating an Apache module, and a very light introduction...