Hi,
I’m trying to setup my web site on a Windows Server 2019 machine using IIS10. The website is based on Perl files. I’ve installed a private ActiveState Perl project based off of ActivePerl 5.32.
I’ve configured the web server to invoke the Perl.exe file whenever any *.pl files are requested from the client’s browser using the IIS’s Handler Mappings configuration.
However, when I try executing the perlPerl file, I keep on getting the following error from my browser:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are “”.
Most likely causes:
The CGI process was shut down or terminated unexpectedly before it finished processing the request.
The CGI process has a flaw and does not return a complete set of HTTP headers.
Things you can try:
Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.
Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers.
Detailed Error Information:
Module CgiModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0xc0000142
The handler for the .pl file points to the Perl.exe file that was installed to location on my C:\ drive when I installed the ActiveState Perl project previously. There was a Perl.exe file and a Perl5.32.1.exe file in the same directory. I wasn’t sure which one to point to so I just used the Perl.exe file.
I’m pretty sure the configuration is not right somewhere and that’s why it’s not working. I wanted to make sure that I can use the ActiveState project as the target of the IIS handler mappings for the .pl file.
Any help is appreciated.