[Klone-users] Custom error with GET data

Mickael Auger mickael.auger at gmail.com
Wed Mar 11 05:03:00 EDT 2009


Hi KLone Team,

I download the new version of KLone (2.2.0) for test it.

However I don't define my custom error page following :

=kloned.conf=============================
server_list    app_http
allow_root yes
log
{
    type                syslog
    syslog.facility     LOG_LOCAL0
}
app_http
{
    type            http

    addr.type       IPv4
    addr.port       8080
    dir_root        /www
    error
    {
       401       /myerror.kl1?no=401
       404       /myerror.kl1?no=404
    }
}
======================================

I would like define one custom error page "error.kl1" for not duplicate my
source code for every error HTTP code.
Here my "error.kl1" page

=error.kl1===============================
<html>
<head><title>Error</title></head>
<body>
<h1><% io_printf(out,"Error %s",request_get_arg(request,"num")); %></h1>
</body>
</html>
======================================

But if I test it, I have this next error page by calling "
http://myserveur:8080/foo" and not my custom error page.
======================================
Not Found

URL: /myerror.kl1?no=404
------------------------------
KLone/2.2.0 web server - www.koanlogic.com
======================================

I reported this idea for the 2.1.1 version but you don't implement (cf.
message "Custom error page with GET/POST data" to /2008/12/17 12:24).
Why ?
I think that this idea is interesting ;)

Bye and thank you for new version.
-- 
Mickaël AUGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20090311/1772d987/attachment.htm


More information about the klone-users mailing list