SwiftCGI icon indicating copy to clipboard operation
SwiftCGI copied to clipboard

Verify it works correctly on Apache/Linux

Open allevato opened this issue 10 years ago • 2 comments

Making this an issue so I have a concrete place to say "Yes, this happened."

allevato avatar Jan 04 '16 16:01 allevato

It would appear that the check performed by Server.isCGI is returning the wrong value under Apache on Ubuntu. When invoked under cgi-bin with only mod_cgi enabled, it still returns success (with an AF_UNIX address of 0.0.0.0:0), instead of ENOTSOCK.

I've verified that it is not actually running in FastCGI mode because attempts to accept a connection on stdin fail with EINVAL.

allevato avatar Jan 05 '16 15:01 allevato

Rather, I should say that it is returning the right thing (because Apache is communicating with the CGI process via a local socket; double-check whether I'm using mod_cgi or mod_cgid), but this breaks the test.

allevato avatar Jan 05 '16 15:01 allevato