How to install a Delphi Webservice ISAPI module on Apache 2.3

Carlos B. Feitoza Filho picture Carlos B. Feitoza Filho · Sep 8, 2011 · Viewed 8.7k times · Source

I have a webservice compiled into a ISAPI module (dll). I have Apache 2.3 correctly installed. How to install this DLL into apache?

Answer

ioan ghip picture ioan ghip · Sep 8, 2011

Here are the info that I used to setup my delphi isapi dll with apache 2.2: http://mc-computing.com/databases/Delphi/WebServers/WebServers.html

Basically you need to make the following modifications in the httpd.conf: Uncomment the isapi_module:

LoadModule isapi_module modules/mod_isapi.so

and then at the end of the file add:

<IfModule mod_alias.c>
    # This allows ISAPI dll's and CGI exe's (both are required for regular aliases)
    AddHandler isapi-isa .dll
    AddHandler cgi-script .exe

    Alias /isapi "d:/faxsrv/httpd"

    <Directory "d:/faxsrv/httpd">
        Options  ExecCGI
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

For this example config, to access your isapi, go to the address:

http://localhost/isapi/yourisapidll.dll