[Klone-users] help with klone cgi

Mark Richards mark.richards at massmicro.com
Fri Sep 11 16:57:26 EDT 2009


thomas fossati , On 9/11/2009 09:15:
> Is the execution bit set in the invoked cgi ?
> Is the interpreter in place (what if you execute the script using the 
> interpreter) ?
> Do you perhaps edit your files in Windows (i.e. new line not the UNIX 
> way) ?
>

Thomas,

All good questions.

1. Yes, binary is set 777.  The binary is named "flash" and is in 
/www/../axis_cgi/admin  (see config below)
2. There's no interpreter.  The binary is executed in a shell.  I looked 
at what Klone does and using execl() is fine.
3. Other files have proper (unix) line endings.

I made a little progress.  With the config below I can cause the script 
to at least kick off by entering it in the browser address bar.  However 
klone,  rather than executing it as a cgi, returns it to the client with 
a nice open/save dialog. (address = 
http://bla.bla.bla.bla:8087:/axis_cgi/admin/flash )


Seems as if something fundamental is missing here?


*kloned.conf:*

server_list    app_http

# needed if you want to run KLone daemon as root
allow_root yes

# syslog logging using LOCAL0 facility (set /etc/syslog.conf accordingly)
log
{
     type                syslog
     syslog.facility     LOG_LOCAL0
}

app_http
{
     type            http
     dir_root        /www
     #dir_alias       /cgi/ /axis-cgi/
     #dir_alias       /admin-bin/ /www/admin-bin/
     #dir_alias       /axis-release/ /www/axis-release/
         addr.type       IPv4
         addr.port       8087

}

cgi
{
     script_alias    /cgi  /axis-cgi
         # .pl and .cgi files will be executed as is
         pl.handler          exec
         cgi.handler         exec
}





More information about the klone-users mailing list