Hi KLone Team,<br><br>I download the new version of KLone (2.2.0) for test it.<br><br>However I don't define my custom error page following :<br><br>=kloned.conf=============================<br>server_list app_http<br>
allow_root yes<br>log<br>{<br> type syslog<br> syslog.facility LOG_LOCAL0<br>}<br>app_http<br>{<br> type http<br><br> addr.type IPv4<br> addr.port 8080<br> dir_root /www<br>
error<br> {<br> 401 /myerror.kl1?no=401<br> 404 /myerror.kl1?no=404<br> }<br>}<br>======================================<br clear="all"><br>I would like define one custom error page "error.kl1" for not duplicate my source code for every error HTTP code.<br>
Here my "error.kl1" page<br><br>=error.kl1===============================<br><html><br><head><title>Error</title></head><br><body><br><h1><% io_printf(out,"Error %s",request_get_arg(request,"num")); %></h1><br>
</body><br></html><br>======================================<br><br>But if I test it, I have this next error page by calling "<a href="http://myserveur:8080/foo">http://myserveur:8080/foo</a>" and not my custom error page.<br>
======================================<br><h1>Not Found</h1><p>URL: /myerror.kl1?no=404</p><hr><address>KLone/2.2.0 web server - <a href="http://www.koanlogic.com">www.koanlogic.com</a></address>======================================<br>
<br>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).<br>Why ?<br>I think that this idea is interesting ;)<br><br>Bye and thank you for new version.<br>
-- <br>Mickaėl AUGER<br><br>