Hi there,
Question 1.)
I managed to activate the cgi servlet and according the ssi servlet in
default-domain.xml
so far it works, though it is a bit slow.
with regards to ssi, there are 2 possible approaches to have them embedded
into an .shtml file:
<!--#exec cgi="/cgi-bin/listing.pl"-->
<!--#include virtual="/cgi-bin/listing.pl"-->
both work as long there is no parameter passed:
<!--#include virltual="/cgi-bin/listing.pl?cat=any"-->
in this case the server.log tells me it can't find the file,
but entering the correct url in the browser followed with the parameter
?cat=any, then the server
responds to the request.
playing a bit around with:
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
does not show any difference.
having checked on the system local I can confirm, that the entire machine
runs on UTF-8,
masking the '?' e.g <!--#include virltual="/cgi-bin/listing.pl\?cat=any"-->
doesn't show any difference.
I come to the conclusion, that the ssi/cgi servlet does not accept parameters
at embedded ssi tags
I have not checked to pass to pass command line params inside the ssi, as
this is a dirty and nasty approach.
Question 2.)
I have copied the entire pre-defined cgi declaration inside
default-domain.xml and renamed the copy
in order to support php.
having a simple
<?php phpinfo(); ?> file the request is passed to the php binary that then
responds the same if you
run from the command line: /var/php/bin/php -i
but without any html-output.
I am wondering why php apps not handled the same way like perl/shtml as there
shouldn't be a difference
or did I miss a thing?
Thanks for help and all the best!
--
[Message sent by forum member 'seagate']
View Post: http://forums.java.net/node/802483