Iñaki Martínez wrote:
Hi!!!
Well this is my firts post in this list...
I have a server with several domains which each of them has its own
handlers, subroutines and there are several common subrutines.
What i want to do it is organize the directory structure, so:
/modperl/domain_1/
/modperl/domain_2/
/modperl/domain_3/
/modperl/domain_n/
/modperl/common/
Inside of each one, the handler and subroutines of each domain.
The the handlers are:
PerlHandler domain_1
...
PerlHandler domain_n
to use the common subroutines:
common::subroutine_n
Now my questions:
1) is this directory structure correct???
2) can it be improve???
3) security matters?
4) IMPORTANT: how to set the @INC and where
any help, tips, URL are welcome
The URL is: http://perl.apache.org/docs/
If you have commons subs, you should be fine as long as they live in the files
with declared packages. See:
http://perl.apache.org/docs/1.0/guide/porting.html#Script_s_name_space
Having a separate @INC for each domain is not possible under mod_perl 1.0 (it
does work under 2.0), though there are workarounds which may be inadequate for
a heavily loaded server.
http://perl.apache.org/docs/1.0/guide/config.html#Is_There_a_Way_to_Modify__INC_on_a_Per_Virtual_Host_or_Per_Location_Basis_
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com