Thank you all you for your help.
Best Regards,
Will
Adam Sjøgren <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
_______________________________________________
List: [email protected]
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. _______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/