Bug #1101
SSI include virtual does not run cgi
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 ?
-- spam
History
#1 Updated by Anonymous about 46 years ago
-- spam
#2 Updated by Anonymous over 8 years ago
I have the same problem.
Is it a bug or missconfiguring? Did this work on other versions?
#3 Updated by Anonymous over 8 years ago
Does anybody solved this problem?
#4 Updated by Anonymous over 8 years ago
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 ?
#5 Updated by Anonymous about 8 years ago
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.
-- nulani
#6 Updated by Anonymous about 8 years ago
Same problem here, Lighttpd does not parse included shtml, but inserts the code!
-- chris
#7 Updated by Anonymous about 8 years ago
problem still exists under 1.4.18. does anyone have any kind of solution?
-- Lightning
#8 Updated by Anonymous about 8 years ago
Replying to spam@electroteque.org:
<!--#include virtual="/cgi-bin/something.cgi" -->
It doesn't appear to run any extensions.
#9 Updated by Anonymous about 8 years ago
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.
-- petitchevalroux
#10 Updated by Anonymous about 8 years ago
Same problem here.
#11 Updated by Anonymous almost 8 years ago
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.
#12 Updated by Anonymous almost 8 years ago
The same trouble here... Anyone resolved this problem? Problem exists in 1.5.x ?
#13 Updated by Anonymous over 7 years ago
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.
#14 Updated by Anonymous over 7 years ago
WTF!
Well, I think I found a solution:
The normal setup fails:
ssi.extension = ( ".shtml" )
But this worked!
ssi.extension = ( ".html", ".shtml" )
Would some one else please test this. I am using lighttpd 1.4.19(-r2) on Gentoo.
-DingbatCA
-- talbotx
#15 Updated by stbuehler over 7 years ago
- Status changed from New to Fixed
- Resolution set to wontfix
I updated the docs to make the limitation more clear: we do not execute sub requests for mod_ssi, and we will not implement it.
#16 Updated by Anonymous over 7 years ago
Taken you long enough ! I think they worked something else out, like using php instead, I have no need for SSI personally but we were migrating from apache, so obviouslly there is an arrogance because the SSI feature is broken and not doing what its suppose to do. So why not just remove the module altogether. There is always technologies like AJAX anyway.
-- spam
#17 Updated by stbuehler about 7 years ago
- Status changed from Fixed to Wontfix
Also available in: Atom