[Klone-users] 404-page implementation
Steven Van Ingelgem
steven at vaningelgem.be
Mon Jun 29 09:22:55 EDT 2009
Something seems not to be correct:
steven at debian:~/kl$ ./kloned -F -d
server_list Salvania test
allow_root yes
log
type syslog
syslog
facility LOG_DAEMON
Salvania
type http
addr
type IPv4
port 8080
dir_root /www
test
type http
addr
type IPv4
port 8181
dir_root /www2
error
404 /index.html
But:
steven at debian:/tmp$ wget -O- http://localhost:8181/indsqdlk
--2009-06-29 15:21:07-- http://localhost:8181/indsqdlk
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8181... connected.
HTTP request sent, awaiting response... *404 Not Found*
2009-06-29 15:21:07 ERROR 404: Not Found.
steven at debian:/tmp$ wget -O- http://localhost:8181/index.html
--2009-06-29 15:21:45-- http://localhost:8181/index.html
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8181... connected.
HTTP request sent, awaiting response... *200 OK*
Length: 6 [text/html]
Saving to: `STDOUT'
0% [
] 0 --.-K/s *BOEBA*
100%[======================================================================>]
6 --.-K/s in 0s
2009-06-29 15:21:45 (499 KB/s) - `-' saved [6/6]
I would expect a same page being downloaded... Or is that my
misunderstanding?
2009/6/29 Mickael Auger <mickael.auger at gmail.com>
> Hi Steven,
>
> you can modify your "etc/kloned.conf" file such as :
>
> ======================================
> server_list app_http
> app_http
> {
> type http
> addr.type IPv4
> addr.port 8081
> dir_root /www
>
> error
> {
> 400 /my400error.html
> 404 /my404error.html
> 500 /my500error.html
> ...
> }
> }
> ======================================
>
> PS : the GET variable in URL is not supported (ex: myerror.html?err=404).
>
> Bye.
>
> 2009/6/29 Steven Van Ingelgem <steven at vaningelgem.be>
>
>> Hi,
>>
>>
>> How can I implement a 404 (and all those other errors) pages?
>>
>>
>> Thanks,
>> Steven
>>
>> _______________________________________________
>> Klone-users mailing list
>> Klone-users at koanlogic.com
>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>
>>
>
>
> --
> Mickaël AUGER
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20090629/4bdf7d32/attachment.htm
More information about the klone-users
mailing list