Ticket #1101 (new defect)

Opened 1 year ago

Last modified 1 month ago

SSI include virtual does not run cgi

Reported by: spam@electroteque.org Assigned to: jan
Priority: highest Milestone: 1.5.0
Component: mod_ssi Version: 1.5.x-svn
Severity: critical Keywords: ssi include virtual cgi fastcgi php
Cc: Blocking:
Need Feedback: 0

Description

<!--#include virtual="/cgi-bin/something.cgi" -->

instead of running the cgi displays the source, but when loading the cgi directly runs it fine, i see many problems about this, but not known bug reports and no fixes any ideas ?

Attachments

Change History

04/07/2007 11:20:33 PM changed by anonymous

I have the same problem. Is it a bug or missconfiguring? Did this work on other versions?

07/06/2007 01:04:40 PM changed by anonymous

Does anybody solved this problem?

07/06/2007 01:11:12 PM changed by anonymous

We gave up and went back to apache we lost a week of migration downtime because of it. We have lhttpd on another server running static content and php index pages, its now 2% cpu load compared to 50%+ when apache was installed what a shame. Is lhttpd vaporware now ?

10/09/2007 09:44:14 PM changed by nulani@nulani.net

  • keywords set to ssi include virtual cgi fastcgi php.
  • version changed from 1.4.13 to 1.4.16.
  • component changed from core to mod_ssi.
  • pending changed.

This bug seems to still be around in version 1.4.16. <!--#include virtual="test.php" --> doesn't parse the code, merely adds it as text.

10/16/2007 08:25:58 AM changed by chris@rauchs-home.de

Same problem here, Lighttpd does not parse included shtml, but inserts the code!

10/29/2007 09:51:35 AM changed by Lightning

  • version changed from 1.4.16 to 1.4.18.
  • severity changed from normal to critical.

problem still exists under 1.4.18. does anyone have any kind of solution?

(in reply to: ↑ description ) 10/31/2007 06:41:33 PM changed by anonymous

Replying to spam@electroteque.org:

<!--#include virtual="/cgi-bin/something.cgi" -->

It doesn't appear to run _any_ extensions.

12/13/2007 09:36:38 AM changed by petitchevalroux

A poor manner run cgi with ssi is to use the exec directive

<!--#exec cmd="/usr/bin/php5-cgi /var/www/index.php" -->

But it is slow and not very clean, but it's the only way i success to do it.

01/04/2008 09:46:09 AM changed by anonymous

Same problem here.

03/27/2008 02:17:10 AM changed by anonymous

  • version changed from 1.4.18 to 1.4.19.

as of lighttpd-1.4.19 - Mar 26 2008 21:14:56 Still doesn't do it. We just use .cgi files for now, but it's a major pain as it breaks our normal ssi setup.

03/31/2008 02:54:46 PM changed by anonymous

The same trouble here... Anyone resolved this problem? Problem exists in 1.5.x ?

04/16/2008 06:30:21 PM changed by anonymous

  • version changed from 1.4.19 to 1.5.x-svn.
  • milestone set to 1.5.0.

I just installed lighttpd for the first time, from svn trunk, include virtua="/cgi-bin/myscript.pl" does not work. Uses the wrong path according to error log. If the cgi-bin exists in the document root as a sub directory, then it will include the file as plain text.


Add/Change #1101 (SSI include virtual does not run cgi)




Change Properties