>Number: 5799 >Category: mod_include >Synopsis: Server Side Includes of CGI with passed parameters fails with >[an error occurred while processing this directive] >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Feb 22 13:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: [EMAIL PROTECTED] >Release: 1.3.9 >Organization: apache >Environment: Solaris 2.5.1, 2.6, Free BSD 3.2, 3.3. GNU 2.8 or greater compiler. >Description: When using mod_include to execute a cgi in a .shtml page with the following content:
<html> <!--#exec cgi="/cgi/env.cgi?name=Don"--> </html> The following error is generated at the browser: [an error occurred while processing this directive] The follwing entry is generated in the log file: invalid CGI ref "/cgi/env.cgi?name=Don" in /www/amplespace/public_html/test/index.shtml When you execute the same shtml without the passed parameter everything works fine.. ie: <html> <!--#exec cgi="/cgi/env.cgi"--> </html> Using #include virtual is a work around, but is not really appropriate. >How-To-Repeat: Configure a standard 1.3.9 apache w/ MOD_INCLUDE and put in the following into the config file to activate cgi & ssi: AddHandler cgi-script .cgi AddType text/html .shtml AddHandler server-parsed .shtml Also include in the <Directory> tag for the html home dir: Options Indexes FollowSymLinks ExecCGI Include >Fix: C >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]