Forum OpenACS Development: Re: ns_pools configuration with URL mapping

Collapse
Posted by Tom Jackson on
Sadly I could not find how to map a pool to a specific URL 😊. Any clues?

Are you not using the new modules/tcl/pools.tcl file?

The config is like this:
# Single Threadpool
# pool = fast

ns_section "ns/server/${server}/pools"
    ns_param $pool "$pool pool"

ns_section "ns/server/${server}/pool/$pool"
ns_param   maxconnections    100
ns_param   minthreads        2 ;# default = 0
ns_param   maxthreads        10
ns_param   threadtimeout     120
ns_param   map               "GET /*-thumb.jpg"
ns_param   map               "GET /images/*-thumb.jpg"
ns_param   map               "GET /test.html"

But you can always do it manually:

ns_pools register poolName serverName method url

In the config, both method and url are combined, but the url part can still be a specific url with no glob pattern. I don't believe that it is important that OpenACS uses a virtual url, it is just based upon the request url.