[fpc-pascal] FastCGI on Windows IIS
Michael Van Canneyt
michael at freepascal.org
Sun Apr 24 23:21:18 CEST 2016
On Sun, 24 Apr 2016, Marcos Douglas wrote:
>> http://localhost:2015/fcgitest.exe/pdf/act1
>>
>> ...but it does not solve the problem. :(
>
> My env: Lazarus 1.5 r50201M FPC 2.6.5 i386-win32-win32/win64
>
> So I took his example here \packages\fcl-web\examples\helloworld
> Compiled it. ISS configured to port 2020.
> Call in browser http://localhost:2020/helloworld.exe/func1call
I have never tested the Fastcgi support with IIS.
The problem is probably that IIS does not provide the same PATHINFO
environment variable as Apache or NGINX.
The PATHINFO environment variable is used to determine what module needs to
be invoked. You can influence this by setting and handling the OnGetModule
event of the TFastCGIApplication application object. In this event, you can
examine the request, and return the class of the module that must be
created.
When you do, please save the contents of PATHINFO to some file, and send it
here, so I can examine it and adapt the implementation so it can handle IIS
as well.
Michael.
More information about the fpc-pascal
mailing list