Received: (qmail 39818 invoked by uid 501); 9 Jul 2001 03:06:54 -0000 Message-Id: <20010709030654.39817.qmail@apache.org> Date: 9 Jul 2001 03:06:54 -0000 From: dylan o'donnell Reply-To: erfmufn@fatuous.org To: submit@bugz.apache.org Subject: CGIs fail to execute outside the /cgi-bin/ X-Send-Pr-Version: 3.110 >Number: 7997 >Category: os-freebsd >Synopsis: CGIs fail to execute outside the /cgi-bin/ >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jul 08 20:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: erfmufn@fatuous.org >Release: 1.3.20 and 1.3.19 tested >Organization: apache >Environment: FreeBSD 4.3 STABLE GCC .. compiles .. installs etc without any problem. >Description: I have included an ExecCGI in the options for the directory in question as so - Options ExecCGI AllowOverride None SetHandler cgi-script I have also added the handler for CGIs in httpd.conf as so - AddHandler cgi-script .cgi I have also added a .htaccess file with the following - RewriteEngine on RewriteBase /usr/local/apache/htdocs/mail/ RewriteRule ^quux\.cgi$ - [T=application/x-httpd-cgi] And after all this I still get the CGI server as ascii instead of executed server side. the permissions are correct, and if I copy all files straight into /cgi-bin/ it works fine.. I do not normally post bug reports especially for something as simple as this. I do this kind of thing so often that it strike me as very odd that its not working now. I am almost positive this has something to do with FreeBSD 4.3 which is the only thing different between this box and others which are working fine on FreeBSD 4.2 and older versions of apache. When I installed FreeBSD 4.3 it asked for a security setting and I went for the default (medium). I have since put this to low to no avail. >How-To-Repeat: http://www.dragnet.net.au/mail/simple.cgi and http://www.dragnet.net.au/cgi-bin/mail/simple.cgi (Simple script to show env variables) >Fix: Find out what FreeBSD security settings affect? i've tried everything from copying the configs of working apache servers from other boxes to this one with no luck.. ive tried setting up virtual hosts with the ExecCGI options etc and the vhosts work fine (so httpd.conf is being used...) but the cgi never does. I'll say it again.. I dont send bug reports like this willy nilly.. but this particular case has got me muddled. If there is something incompatible with freebsd 4.3 then you guys should probably know about it... im tearing my hair out.. such a simple thing.. I might have to install freebsd4.2 in the meantime :/ >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]