in reply to Is mod_perl handling requests, or not?

From mod_perl change file:

Drop the support for making GATEWAY_INTERFACE special. It's not needed as $ENV{MOD_PERL}, available in both mod_perl generations, should be used to test whether the code is running under mod_perl. Stas

-derby
  • Comment on Re: Is mod_perl handling requests, or not?

Replies are listed 'Best First'.
Re^2: Is mod_perl handling requests, or not?
by kabeldag (Hermit) on Jun 11, 2006 at 12:56 UTC

      GATEWAY_INTERFACE is defined in the CGI spec and from the spec

      The Common Gateway Interface (CGI) is a simple interface for running external programs

      There's nothing external about any of the mod_xxxs ... so in this case, mod_perl is doing the right thing. Your server still supports cgi ... you're just not using it.

      The environment variables are not about what the server *did* but what it *can do*.

      -derby
        I understand all that.

        I have just been led to believe from mod_perl documentation that GATEWAY_INTERFACE
        reflects the handler of the request. Of course, there are other environment variables that are relative
        to the request/session ie; REMOTE_ADDR etc. But im not going to worry about it too much :)

        Seeing as I have loaded the dynamic shared object,
        and am able to load perl modules from httpd.conf, I figure mod_perl is rolling anyhow.

        Thanks for the replies guys :)