<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#330099">
Stefano Barbato , On 9/14/2009 11:18:
<blockquote
 cite="mid:9749FF12-7107-4DAE-BA6E-235707D55944@koanlogic.com"
 type="cite">Hi Mark!
  <br>
  <br>
below are a few notes about your issues:
  <br>
  <br>
### issue 1 ###
  <br>
  <br>
The cgi{} configuration block must be inside the "app_http" block; the
/axis-cgi directory may be anywhere in the filesystem, KLone expects an
absolute directory for the script_alias directive (it's better to move
it out of /www otherwise a misconfiguration may show the source code of
the cgi script that may be dangerous).
  <br>
</blockquote>
This was a great help.  Now I understand the structure.<br>
<blockquote
 cite="mid:9749FF12-7107-4DAE-BA6E-235707D55944@koanlogic.com"
 type="cite"><br>
Is the "flash.cgi" file a shell script? in such case it should print
out the content-type header field followed by a blank line (this will
avoid the browser save dialog step). For ex. this is a valid cgi
script:
  <br>
</blockquote>
It is a unix file marked as executable.  It has NO file extension.  It
outputs the proper header, or so it seems, but then the session
disconnects - which probably goes back to klone's cgi handling... maybe.<br>
<br>
<br>
The flash file does a number of things, including first calling a shell
script.  <br>
<br>
As the file *has no extension*, it seems  cgi_is_valid_uri()
(sup_cgi.c) does not allow it to be recognized as a true cgi.  <br>
<br>
<br>
Is it "legal" to put warn() calls in sup_cgi.c so I can do some more
logging and track down the issue?  <br>
<br>
<blockquote
 cite="mid:9749FF12-7107-4DAE-BA6E-235707D55944@koanlogic.com"
 type="cite">NOTE: you must configure KLone with --enable_fs to enable
external filesystem support and --enable_cgi to use CGIs (add those
switch to KLONE_CONF_ARGS variable in the top level makefile)
  <br>
</blockquote>
Been there and done that :)<br>
<blockquote
 cite="mid:9749FF12-7107-4DAE-BA6E-235707D55944@koanlogic.com"
 type="cite"><br>
### issue 4 ###
  <br>
  <br>
That would be great; probably a simple mime{} block in the .conf file
should be enough:
  <br>
  <br>
mime
  <br>
{
  <br>
    # file extension    mimetype
  <br>
    abc            application/ABC
  <br>
}
  <br>
  <br>
I'm not sure how we could import an external patch into klone if it's
not copyright'd by KoanLogic but we will sort that out in some way :)
  <br>
</blockquote>
Donation.<br>
<br>
Although I should pay someone else to use my code!!<br>
<br>
/m<br>
<br>
</body>
</html>