in reply to About PATH_INFO and SSI

This is probably more of an Apache question than a Perl one. From my reading of the documentation, it looks like PATH_INFO should be available. The mod_include documentation says that all standard CGI variables should be available to SSI documents, the mod_cgi documentation says that all variables in the CGI specification will be set, and the CGI Environment Variables part of the spec includes PATH_INFO. So I'm not sure why you're seeing the problem you're seeing, but an Apache guru would probably know.

Replies are listed 'Best First'.
Re^2: About PATH_INFO and SSI
by mellin (Scribe) on Dec 07, 2004 at 10:14 UTC
    I know now why it did not work, 'cause in the middle of the night i just tried one thing, and now the site works.

    It is like this now in the .shtml files:

    <!--#set var="path_info" value="${PATH_INFO}"--> <!--#include virtual="/cgi-bin/index.pl$path_info"-->


    As you see, i had to use SSI-variable to pass that PATH_INFO to the CGI-script. There was no problem with Perl, but what i read at night, Apache will not for some reason pass PATH_INFO and QUERY STRING with GET-method to SSI-included file, but you can get away like this.

    I figured this out with luck, phuuh!