multiple instances of one web application

[prev] [thread] [next] [Date index for 2004/11/16]

From: Harald Meier
Subject: multiple instances of one web application
Date: 10:06 on 16 Nov 2004
dear group,

i am developing a web application using apache 2.0 and mod_perl 2.0.
the application is split into a couple of perl modules.

i would like to install the same application more than once on the same 
web-server
without changing the application code.

so
    http://www.foo.bar/myapp/instance1 calls instance 1
    http://www.foo.bar/myapp/instance2 calls instance 2
    ...

i have no idea how to handle the module/library problem to make sure that 
each
instance loads its own modules and if a module has changed, the correct 
module is
reloaded.

i cannot use <VirtualServer> because the servername will always be the same.

my httpd.conf (works only for single instance):

    PerlSwitches -w -T -M/opt/myapp/instance1

    PerlModule      Apache::Reload
    PerlInitHandler Apache::Reload
    PerlSetVar      ReloadAll On

    <Location /myapp/instance1>
        SetHandler                     perl-script
        PerlResponseHandler     myapp
        PerlOptions                    +SetupEnv
    </Location>


thanks for your help!
harald. 


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

cookies in subrequest
Marc Lambrichs 08:39 on 16 Nov 2004

multiple instances of one web application
Harald Meier 10:06 on 16 Nov 2004

Re: multiple instances of one web application
Stas Bekman 21:10 on 16 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52