2006/12/15
IRC [03:15] *** partymola parted the chat.
IRC [03:23] *** partymola joined the chat.
IRC [03:23] <partymola> hi ~~
IRC [04:06] <nodie> hi
IRC [04:19] <nodie> I've my aolserver (cvs head) taking 96% of CPU time!
IRC [04:19] <nodie> it seems to be doing something in the filesystem
IRC [04:19] <nodie> I don't now what
IRC [04:20] <nodie> most of the time is wasting in system time
IRC [04:30] <partymola> nodie: ... restart AOLServer XDD
IRC [07:47] *** partymola parted the chat.
IRC [07:53] <nodie> I've recompiled Aolserver using the last snapshot of Tcl 8.5 and it works now
IRC [10:06] *** partymola joined the chat.
IRC [10:06] <partymola> hi
IRC [10:19] <nodie> hi again
IRC [11:07] *** holycow joined the chat.
IRC [11:10] <nodie> hi holycow
IRC [11:10] <holycow> g'mornin
IRC [11:14] <partymola> evening here ;)
IRC [11:20] <Dossy> Hmm.
IRC [11:23] <partymola> hi Dossy
IRC [11:23] <partymola> just a question...
IRC [11:23] <Dossy> OK?
IRC [11:23] <partymola> is there some way to customize error pages?
IRC [11:23] <partymola> 404, 403 ...
IRC [11:23] <Dossy> Sure.
IRC [11:23] <partymola> how in this world?
IRC [11:23] <partymola> i've been looking for that
IRC [11:23] <Dossy> http://www.aolserver.com/docs/admin/config-reference.tcl.txt
IRC [11:23] <partymola> okey
IRC [11:23] <partymola> thanks
IRC [11:24] <Dossy> #
IRC [11:24] <Dossy> # Internal redirects
IRC [11:24] <Dossy> #
IRC [11:24] <Dossy> ns_section "ns/server/${servername}/redirects"
IRC [11:24] <Dossy> ns_param 404 "/notfound.html" ;# Not Found error page
IRC [11:24] <Dossy> ns_param 500 "/servererror.html" ;# Server Error page
IRC [11:24] <nodie> wow
IRC [11:24] <Dossy> Does that help?
IRC [11:24] <partymola> YES
IRC [11:24] <Dossy> OK. :-)
IRC [11:24] <partymola> yay for Dossy :)
IRC [11:31] <partymola> ok, now even funnier
IRC [11:32] <partymola> when and adp file fails
IRC [11:32] <partymola> then execution stops...
IRC [11:32] <partymola> is there some way to intercept that and show some kind of error page?
IRC [11:32] <partymola> i mean some generic way
IRC [11:32] <partymola> or it just happens that evaluation stops
IRC [11:33] <partymola> and nothing can be done?
IRC [11:34] <Dossy> hmmm.
IRC [11:35] <Dossy> you can use a startpage
IRC [11:35] <Dossy> that uses [catch] around the adp evaluation.
IRC [11:35] <partymola> ns_param startpage \
IRC [11:35] <partymola> ${pageroot}/startpage.inc ;# Page to include for all ADP's
IRC [11:35] <partymola> something like that?
IRC [11:44] <Dossy> yeah.
IRC [11:44] <Dossy> so, for all ADP requests, that's the file that gets evaluated first
IRC [11:44] <Dossy> somewhere in there, you'll want to do something like:
IRC [11:44] <Dossy> ns_adp_include [ns_url2file [join [ns_conn urlv] /]]
IRC [11:45] <Dossy> my hunch is if you change that to something like:
IRC [11:45] <Dossy> if {[catch { ns_adp_include [ns_url2file [join [ns_conn urlv] /]] } err]} { ... do something here ... }
IRC [11:45] <Dossy> you might get what you want. I'm not 100% sure, I haven't tested it.
IRC [11:46] <partymola> loool
IRC [11:46] <partymola> i am a little lost
IRC [11:46] <partymola> so that shows that default page
IRC [11:46] <partymola> in case the page i want to render fails
IRC [11:47] <partymola> but well... it seems it has a performance loss, because it was to render two webpages each petition
IRC [11:47] <partymola> it have to render*
IRC [11:47] <partymola> i have to*
IRC [11:47] <partymola> dang xD
IRC [11:48] <Dossy> yeah. but, there's really no other way.
IRC [11:49] <partymola> okey
IRC [11:49] <partymola> and another question...
IRC [11:49] <partymola> when does aolserver returns a 500 error?
IRC [11:50] <partymola> (Internal Server Error)
IRC [11:50] <partymola> i've never seen it xD
IRC [11:50] <partymola> others use to return that when an error processing a script happens... but it's not the case of aolserver... lol
IRC [11:53] <partymola> oh! my ip address is blocked at wiki... lol
IRC [11:53] <partymola> Your user name or IP address has been blocked by Dossy.
IRC [11:53] <partymola> The reason given is this:
IRC [11:53] <partymola> 11/04/2005 Spam.
IRC [11:53] <partymola> Your IP address is 83.54.221.176.
IRC [12:06] <nodie> everyone knows that partymola is a infamouse spammer xD
IRC [12:06] <partymola> hell yeah! :D
IRC [12:14] <Dossy> heh.
IRC [12:14] <Dossy> let me look at that
IRC [12:15] <partymola> seems some dirty spaniard tried to spam wiki... and Dossy decided to ban half Spain's IP adresses XD
IRC [12:18] <Dossy> yeah.
IRC [12:18] <Dossy> :(
IRC [12:18] <Dossy> now, I can't remember where that list is :)
IRC [12:18] <Dossy> Oh, I remember now.
IRC [12:19] <Dossy> 14:06, 4 November 2005, Dossy blocked 83.54.0.0/16 (infinite) (contribs) (unblock) (11/04/2005 Spam.)
IRC [12:19] <Dossy> I'll unblock it.
IRC [12:20] <Dossy> OK, it's unblocked.
IRC [12:21] <partymola> ok, thanks :)
IRC [12:21] * partymola starts spamming
IRC [12:21] <partymola> ;)
IRC [12:35] <partymola> Dossy: the "it's nailed to a cross" joke is so mean that i can't stop laughing XDDDD
IRC [13:38] <Dossy> :P
IRC [13:38] <Dossy> hehe.
IRC [13:38] <Dossy> I couldn't help it. That was the first thought that came to my mind. :P
IRC [19:15] *** holycow parted the chat.