blob: 88b4cc660201e76f91a9e2b766ec5069035a8fd1 [file] [log] [blame]
# ---------------------------------------------------------------------------
# main websh configuration file (referenced by Apache WebshConfig directive)
# $Id$
# ---------------------------------------------------------------------------
# where is all the stuff
set document_root [eval file join [lrange [file split [info script]] 0 end-2]]
# map of requests to interpreter classes
proc web::interpmap {file} {
# what needs to be passed to websh.interpclass
if {[string match $::document_root/websh/* $file]} {
return $::document_root/websh/websh.interpclass
# default (all other files use their own class)
return $file
# allow 1000 requests per interpreter before cleaning it up
web::interpclasscfg $::document_root/websh/websh.interpclass maxrequests 1000