markjugg has asked for the wisdom of the Perl Monks concerning the following question:

I've got a question for the CGI jocks among you. I'm running identical perl code on two different virtual domains, both served by the same Apache 1.3.17.

When I perform the same action in both environments, one domain does not report the SCRIPT_URI and SCRIPT_URL in the ENV variables. SCRIPT_NAME holds suitable information in both cases as a work around, but I'm curious what could cause this. Thanks!

-mark

  • Comment on case of the missing SCRIPT_URI and SCRIPT_URL

Replies are listed 'Best First'.
Re: case of the missing SCRIPT_URI and SCRIPT_URL
by merlyn (Sage) on Apr 06, 2001 at 07:49 UTC
    If I recall, apparently SCRIPT_URI and SCRIPT_URL are added by mod_rewrite, so if that's not enabled, you don't get those env's.

    -- Randal L. Schwartz, Perl hacker

      Your right! You get the golden duck award. (I only give out this virtual award in very special cases). With your pointer, I found the documentation here to verify and explain it.

      update: This page explains what the normal CGI environment variables are for.

      -mark