Generic interface and Apache mod_proxy_fcgi

Moderator: crythias

Post Reply
chrullrich
Znuny newbie
Posts: 4
Joined: 26 Jan 2016, 12:13
Znuny Version: 6.x.y

Generic interface and Apache mod_proxy_fcgi

Post by chrullrich »

Hello,

I'm setting up a new OTRS server, and I would like to use Apache 2.4's recently added mod_proxy_fcgi because I think it is more straightforward to set up than the various other FastCGI modules out there. There is one catch: The generic interface (nph-genericinterface.pl) is, as the name says, an NPH program, and mod_proxy_fcgi apparently does not support NPH behavior.

My question is: Is there a reason the generic interface has to be NPH? To turn it into a "normal" CGI program requires changing a total of three lines of code, and my (limited) use case works perfectly fine afterwards. Am I setting myself up for trouble later if I do this?

This is the entire change required to the REST and SOAP transport modules:

Code: Select all

-    print STDOUT "$Protocol $Param{HTTPCode} $StatusMessage\r\n";
+    print STDOUT "Status: $Param{HTTPCode}\r\n";
Thanks in advance for any insights,

--
Christian
Post Reply