LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > SSI: Exec cgi causes include virtual not to work

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2010, 11:38 AM
AndrewT AndrewT is offline
Senior Member
 
Join Date: Jan 2010
Posts: 70
Default SSI: Exec cgi causes include virtual not to work

Not looking good for LiteSpeed's SSI support right about now. This is the second problem I've discovered in 3 days.

Code:
<!--#exec cgi="cgi-bin/ax_203.pl" -->
<!--#include virtual="f/SSI.php?ssi_function=recentPosts" -->
With the exec cgi prior to the include virtual, the include virtual does not work and the following error is reported in the error_log:

Code:
Server Side Include request a CGI script, [/f/SSI.php] is not a CGI script, access denied.
When the exec cgi is removed the include works exactly as it is supposed to. This, of course, wasn't an issue with Apache.

This is occurring on 4.0.13.
Reply With Quote
  #2  
Old 04-29-2010, 10:21 AM
AndrewT AndrewT is offline
Senior Member
 
Join Date: Jan 2010
Posts: 70
Wonderful lack of response here and this is (also) not fixed in 4.0.14.
Reply With Quote
  #3  
Old 04-29-2010, 10:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Sorry, overlooked this one. working on it.
Reply With Quote
  #4  
Old 04-29-2010, 11:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
This issue should be addressed with the latest update of 4.0.14.
Reply With Quote
  #5  
Old 04-29-2010, 11:27 AM
AndrewT AndrewT is offline
Senior Member
 
Join Date: Jan 2010
Posts: 70
Looks good to me. I'll have our client confirm and will report back if I find anything further. Thanks a bunch for getting these taken care of.
Reply With Quote
  #6  
Old 08-03-2010, 07:04 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
we're setting this issue and we're past the .14 release.
Reply With Quote
  #7  
Old 08-03-2010, 07:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Maybe it is a different issue. Can you give us detailed test case?
Reply With Quote
  #8  
Old 08-03-2010, 07:15 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
it's basically:

Code:
#include virtual="cgi-bin/blah.cgi"
Where blah.cgi is a perl script. Works fine when .shtml's are proxied to Apache (which we are trying to turn off). We don't see anything in the error log.
Reply With Quote
  #9  
Old 08-04-2010, 02:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Does URL "/cgi-bin/blah.cgi" work when you access it directly?
file "cgi-bin/blah.cgi" should be relative to the shtml including it.
Reply With Quote
  #10  
Old 08-04-2010, 06:27 PM
ffeingol ffeingol is offline
Senior Member
 
Join Date: Jul 2007
Location: /dev/null
Posts: 290
It is relative. The cgi-bin folder is under the sites root and the main .shtml file is being run from the document root. Yes, it more or less works if you access it via /cgi-bin/blah.cgi. It does not output proper headers you you get some errors. It basically splits out HTML code that needs to be embedded within the web page.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:19 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.