[Klone-users] help with klone cgi

Mark Richards mark.richards at massmicro.com
Tue Sep 15 18:40:40 EDT 2009


Stefano Barbato , On 9/14/2009 11:18:
> Hi Mark!
>
> below are a few notes about your issues:
>
> ### issue 1 ###
>
> 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).
This was a great help.  Now I understand the structure.
>
> 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:
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.


The flash file does a number of things, including first calling a shell 
script.

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.


Is it "legal" to put warn() calls in sup_cgi.c so I can do some more 
logging and track down the issue?

> 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)
Been there and done that :)
>
> ### issue 4 ###
>
> That would be great; probably a simple mime{} block in the .conf file 
> should be enough:
>
> mime
> {
>     # file extension    mimetype
>     abc            application/ABC
> }
>
> 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 :)
Donation.

Although I should pay someone else to use my code!!

/m

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20090915/fbb714b4/attachment.html


More information about the klone-users mailing list