title: How do I configure a ASAPI DLL for Delphi in Apache 2.X?
body: <p>I'm trying to understand ISAPI as run under Apache 2.x.  I've created a simple DLL using Delphi XE to test with based on a tutorial I found.</p>
  
  <p>I've added these lines to my Apache httpd.conf file.</p>
  
  <pre><code>ScriptAlias /Delphi/ "C:/Delphi/bin/"
  &lt;Directory "C:/Delphi/bin/"&gt;
    AddHandler isapi-handler .dll    
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The isapi_module is loaded.</p>
  
  <p>I've placed the DLL in C:\Delphi\bin.</p>
  
  <p>When I call it with the following URL (case is correct);
      <a href="http://127.0.0.1/Delphi/ISAPI_Test1.dll" rel="nofollow">http://127.0.0.1/Delphi/ISAPI_Test1.dll</a></p>
  
  <p>I get a 403 error and the Apache Error Log has this line.</p>
  
  <pre><code>... [error] [client 127.0.0.1] attempt to invoke directory as script: C:/Delphi/bin/
  </code></pre>
  
  <p>I expect the dll to simply use the default handler:</p>
  
  <pre><code>procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject;
    Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
    begin
      Response.SendRedirect (Request.Referer);
    end;
  </code></pre>
  
  <p>Question 1: What is my specific issue here?<br>
  Question 2: Can anybody point me to a step by step tutorial or book for getting a basic skelton working? I've got too many holes in my understanding at this point.</p>
  
  <p>Thank you.</p>