[Catalyst] Re: Multi Mod_Perl apps - THANK YOU
Will Smith
willbelair at yahoo.com
Thu Aug 9 14:46:27 GMT 2007
Thank you all you for your help.
Best Regards,
Will
Adam Sjøgren <asjo at koldfront.dk> wrote: On Wed, 8 Aug 2007 06:14:54 -0700 (PDT), Will wrote:
> Sorry if I post an old question, I just want to know if I could do
> this to run multi app on the same server under mod_perl:
> PerlSwitches -I/var/www/MyApp1/lib
> PerlModule MyApp1
>
> SetHandler modperl
> PerlResponseHandler MyApp1
>
> PerlSwitches -I/var/www/MyApp2/lib
> PerlModule MyApp2
>
> SetHandler modperl
> PerlResponseHandler MyApp2
>
Assuming that the -parts are in different virtual hosts (and
not as shown verbatim above), yes; that is what I do.
My site-configuration files basically looks like this (stuff omitted at
[...] for brevity):
,----[ /etc/apache2/sites-enabled/010-www.kammeratadam.dk ]
| PerlSwitches -I/var/www/www.kammeratadam.dk/lib
| PerlModule KammeratAdam
|
|
| ServerName www.kammeratadam.dk
| [...]
|
|
| SetHandler modperl
| PerlResponseHandler KammeratAdam
| ExpiresDefault "access plus 10 minutes"
|
|
|
| SetHandler None
| ExpiresDefault "access plus 1 week"
|
| [...]
|
`----
,----[ /etc/apache2/sites-enabled/010-www.vantbanken.se ]
| PerlSwitches -I/var/www/www.vantbanken.se/lib
| PerlModule Vantbanken
|
|
| ServerName www.vantbanken.se
| [...]
|
|
| SetHandler modperl
| PerlResponseHandler Vantbanken
|
| AuthType Basic
| AuthName "Not open yet"
| AuthUserFile /var/www/www.vantbanken.se/conf/stats
| Require valid-user
|
| [...]
|
`----
> My question is the PerlSwitches, will it get any error with that?
Not unless your apps have different local modules with the same names,
I'd guess?
Best regards,
Adam
--
"KOMPRESSOR crush american burger" Adam Sjøgren
asjo at koldfront.dk
_______________________________________________
List: Catalyst at lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070809/7d0dce70/attachment.htm
More information about the Catalyst
mailing list