[Klone-users] help with klone cgi

Mark Richards mark.richards at massmicro.com
Mon Sep 7 18:20:31 EDT 2009


klone 2.1.0
Linux 2.6.26 #138 PREEMPT Mon Sep 7 17:00:06 EDT 2009 cris

     Converting from a boa cgi handler to klone.

/runtime/html/index.html
/runtime/html/axis-cgi/admin/flash  (points to /bin/flash)

index.html:
<form name="UpgradeForm"
       action="/axis-cgi/admin/flash?-t+flash+-m+HTTP_POST"
       enctype="multipart/form-data"
       method="post">



     The html page issues an error: "The connection to the server was 
reset while the page was loading."
     kloned posts these messages:

crt][3420:sup_cgi.c:478:cgi_exec] execve(argv[0], argv, cgi_env.env) 
[errno: 8, Exec format error]
[crt][3419:sup_cgi.c:553:cgi_serve] io_copy(cgi_out, request_io(rq), 
clen) < 0
[wrn][3419:sup_cgi.c:616:cgi_serve] cgi exited with [1]


     I've tried various tests, including putting a simple shell script 
in the cgi and having the index.html call it.  Still the same failure.

     Perhaps the issue is in kloned.conf?

     kloned.conf below:




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
         model           prefork
         addr.type       IPv4
         addr.port       8080
         dir_root        /runtime/html/
         dir_alias       /axis-cgi/ /runtime/html/axis-cgi/
         dir_alias       /admin-bin/ /runtime/html/admin-bin/
         dir_alias       /axis-release/ /runtime/html/axis-release/

         cgi
         {
                 script_alias    /axis-cgi  /runtime/html/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