When we did something similar to what (I think) you are
trying to do, we did it in the following way:
- Use a seperate Apache.conf file for each site.
- Define a variable of the same name in each .conf file
- Knock up a config.pl file that checks the define and sets
default colours etc depending on the site referred to
- Start each CGI file with a do(config.pl); line
- Refer to these default variables.
With this setup we got three functionally similar sites
running off the same cgi-bin directory, which is what I think
you are looking to do.
$japh->{'Caillte'} = $me;