开发者

How to install a Delphi Webservice ISAPI module on Apache 2.3

I have a webs开发者_开发技巧ervice compiled into a ISAPI module (dll). I have Apache 2.3 correctly installed. How to install this DLL into apache?


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


I once published (with some help by David Moorehouse) updated headers for apache 2.2 but note that these aren't unicodified yet so they work only with Delphi 2007....

You can download them under: https://forums.embarcadero.com/servlet/JiveServlet/download/2-25399-163963-2029/ApacheTwoHTTP.zip

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜