On Sat, 1 Oct 2016 00:16:59 +0200
Tosh Cooey <[email protected]> wrote:
>
> Now the followup. I personally need extra dynamism, specifically I need
> DBDParams and SessionCookieName to be dynamic for each request. Intense
> googling has lead me to believe I can do so within a <Perl> block,
> something like:
>
> When the user requests www.site.com/client_identifier/*anything* then
> the <Perl> block needs to get $client_identifier from the URI and then
> get $host, $database, $username, $password via:
>
> select host, database, username, password from clients where client =
> $client_identifier
>
> But I'm kind of at a bit of a loss how to accomplish this. Anyone here
> have any hints?
>
I don't know about the <Perl> block, but I would use the HeaderParser phase for
this :
PerlModule your::module
<Location /private>
PerlHeaderParserHandler your::module
</Location>
and have your::module do the select host, etc... and set the cookie
--
Bien à vous, Vincent Veyron
https://compta.libremen.com
Logiciel libre de comptabilité générale