|
<< Click to Display Table of Contents >> Navigation: Developer's Guide > Deployment > Native Apache 2.4 Module > Configuring Apache to run uniGUI Apache Module |
After creating the DLL file it is time to configure Apache 2.4 for Windows.
Consider that our DLL file is in below folder:
C:\Projects\uniApache\uniApache.dll
Open Apache httpd.conf file using a text file editor.
Add below line:
LoadModule uniapache_module "C:\Projects\uniApache\uniApache.dll"
You may wonder where the phrase uniapache_module comes from.
If you examine your project file you will see below declaration:
// Declare exported variable so that Apache can access this module.
var
GModuleData: TApacheModuleData;
exports
GModuleData name 'uniapache_module';
You can change the above declaration and use a different name.
In your httpd.conf file you should also declare a virtual path for your application:
<Location /uniapp>
SetHandler uniApache-handler
</Location>
The handler name uniApache-handler is formed by adding phrase "-handler" to name of your DLL.
Here uniapp is an alias for your application and this alias will be used to start a session in a browser tab.
In order to reflect these changes we need to restart the Apache server. You can do this from Apache Servis Monitor application:
