That's what I have, two different webmux.pl files...<br><br>They are in the same /opt/rt3/bin folder...<br><br>The old brand is called webmux.pl, the new brand is called webmux-brandy.pl<br><br>They are called in httpd.conf with these two separate lines in their respective host entries...<br>

PerlRequire /opt/rt3/bin/webmux-brandy.pl<br>
PerlRequire /opt/rt3/bin/webmux.pl<br><br clear="all">Sincerely,<br>Doug Eubanks<br><a href="mailto:admin@dougware.net">admin@dougware.net</a><br>
<br><br><div class="gmail_quote">On Tue, Feb 24, 2009 at 11:54 AM, Raed El-Hames <span dir="ltr"><<a href="mailto:rfh@vialtus.com">rfh@vialtus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Doug;<br>
<br>
Looking at the http conf file you sent below, you seem to call the same webmux.pl<div class="Ih2E3d"><br>
<br>
PerlRequire /opt/rt3/bin/webmux.pl<br>
<br></div>
You 'll need to have multiple versions of webmux.pl  in each version you add the line<br>
$ENV{'SERVER'}    = 'my_brand(?)_<a href="http://instance.com" target="_blank">instance.com</a> <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
<br>
For example you have <a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> and <a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<br>
httpd.conf :<br>
<br>
<VirtualHost <a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>:80><div class="Ih2E3d"><br>
   ServerName <a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br></div><div class="Ih2E3d">
   DocumentRoot /opt/rt3/share/html<br></div>
   etc etc etc<br>
     PerlRequire /opt/rt3/bin/webmux-brandy <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl<br>
<br>
   etc etc etc<br>
</VirtualHost><br>
<br>
<VirtualHost <a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>:80><br>
   ServerName <a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><div class="Ih2E3d"><br>
   DocumentRoot /opt/rt3/share/html<br></div>
   etc etc etc<br>
     PerlRequire /opt/rt3/bin/webmux-brandx <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl<br>
<br>
   etc etc etc<br>
</VirtualHost><br>
<br>
<br>
Now webmux:<br>
You should have atleast 2 copies in /opt/rt3/bin one called webmux-brandy <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl and the other webmux-brandx <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl<br>

<br>
Edit webmux-brandy <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl adding the line:<br>
   $ENV{'SERVER'}    = '<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>';    where ENV is being set<br>

 so basically you'll end up with something similar to:<br>
<br>
BEGIN {<br>
   $ENV{'PATH'}   = '/bin:/usr/bin';                     # or whatever you need<br>
   $ENV{'CDPATH'} = '' if defined $ENV{'CDPATH'};<br>
   $ENV{'SHELL'}  = '/bin/sh' if defined $ENV{'SHELL'};<br>
   $ENV{'ENV'}    = '' if defined $ENV{'ENV'};<br>
   $ENV{'IFS'}    = '' if defined $ENV{'IFS'};<div class="Ih2E3d"><br>
   $ENV{'SERVER'}    = '<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>';<br>
<br></div>
Now edit webmux-brandx <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>.pl adding the line<br>
  $ENV{'SERVER'}    = '<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>';    where ENV is being set<br>

 so basically you'll end up with something similar to:<br>
<br>
BEGIN {<br>
   $ENV{'PATH'}   = '/bin:/usr/bin';                     # or whatever you need<br>
   $ENV{'CDPATH'} = '' if defined $ENV{'CDPATH'};<br>
   $ENV{'SHELL'}  = '/bin/sh' if defined $ENV{'SHELL'};<br>
   $ENV{'ENV'}    = '' if defined $ENV{'ENV'};<br>
   $ENV{'IFS'}    = '' if defined $ENV{'IFS'};<div class="Ih2E3d"><br>
   $ENV{'SERVER'}    = '<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>';<br>
<br>
<br></div>
Now RT.pm<br>
at the start of sub LoadConfig add the lines:<br>
<br>
  if ($ENV{'SERVER'} eq '<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>' ) {<br>
       $SITE_CONFIG_FILE = '/opt/rt3/local/etc/RT_SiteConfig_brandx.pm' ;<br>
  } elsif ($ENV{'SERVER'} eq '<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>' ) {<br>
      $SITE_CONFIG_FILE = '/opt/rt3/local/etc/RT_SiteConfig_brandy.pm' ;<br>
 }<br>
<br>
<br>
Now RT_SiteConfig:<br>
<br>
You should have atleast 2 copies  RT_SiteConfig_brandx.pm, and RT_SiteConfig_brandy.pm each have the instance customisation  ,<br>
<br>
And thats it..<br>
<br>
Roy<br>
<br>
<br>
<br>
<br>
<br>
Doug Eubanks wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I'm so close now....but it's always selecting brandy (the new brand).  I'm sure it's something small and simply that I'm missing now.  I really appreciate your help so far.<br>
<br>
I know the whole brandx, brandy thing is a little confusing.  I've double checked all of the refences below, and brandx and brandy are used the correct spots in each code snippet below.<br>
<br>
Here is the output of the foo file that shows that the ENV variables are being set:<br>
<br>
</div><a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>

<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>

<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>

<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>

<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>

<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><div class="Ih2E3d">
<br>
<br>
I've double checked the httpd.conf file, inside of the brandy site, we have<br>
PerlRequire /opt/rt3/bin/webmux-brandy.pl<br>
<br>
Inside of the brandx site, we have<br>
PerlRequire /opt/rt3/bin/webmux.pl<br>
<br>
Here's my webmux.pl changes for the old brand:<br></div>
#This drags in RT's <a href="http://config.pm" target="_blank">config.pm</a> <<a href="http://config.pm" target="_blank">http://config.pm</a>><br>
BEGIN {<br>
    $ENV{'SERVER'}    = '<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>>';<div class="Ih2E3d">
<br>
    RT::LoadConfig();<br>
    if ($RT::DevelMode) { require Module::Refresh; }<br>
}<br>
<br>
Here's my webmux-brandy.pl changes for the old brand:<br></div>
#This drags in RT's <a href="http://config.pm" target="_blank">config.pm</a> <<a href="http://config.pm" target="_blank">http://config.pm</a>><br>
BEGIN {<br>
    $ENV{'SERVER'}    = '<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>';<div class="Ih2E3d">
<br>
    RT::LoadConfig();<br>
    if ($RT::DevelMode) { require Module::Refresh; }<br>
}<br>
<br>
This is my RT.pm LoadConfig sub, right before it stats and loads the site config file:<br>
my $ser = $ENV{'SERVER'} ;<br>
open F, ">> /tmp/foo" ;<br>
  print F "$ser \n";<br>
close F;<br>
<br></div>
if ($ENV{'SERVER'} eq "<a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>>") {<div class="Ih2E3d">
<br>
      $SITE_CONFIG_FILE = '/opt/rt3/etc/RT_SiteConfig-Refense.pm' ;<br>
}<br></div>
if ($ENV{'SERVER'} eq "<a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>>") {<div class="Ih2E3d">
<br>
      $SITE_CONFIG_FILE = '/opt/rt3/etc/RT_SiteConfig.pm' ;<br>
}<br>
<br>
<br>
Sincerely,<br>
Doug Eubanks<br>
</div><div class="Ih2E3d"><a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
<br>
<br></div><div class="Ih2E3d">
On Tue, Feb 24, 2009 at 9:53 AM, Raed El-Hames <<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>>> wrote:<br>
<br>
    Sorry Doug my mistake its been a long time since I did this:<br>
    we set :<br>
    $ENV{'SERVER'}    = '<a href="http://my_brandx_instance.com" target="_blank">my_brandx_instance.com</a><br></div>
    <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>> <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>> in<div class="Ih2E3d">
<br>
    the relavent webmux-brandx.pl , it would n't have existed before ..<br>
    The best bet to see if its loaded into ENV is by adding a print<br>
    statement in RT.pm LoadConfig, looking at my dev code I think I<br>
    managed to do something like<br>
    sub LoadConfig {<br>
<br>
    my $ser = $ENV{'SERVER'} ;<br>
    open F, ">> /opt/rt3/bin/foo" ;<br>
      print F "$ser \n";<br>
    close F;<br>
<br>
<br>
    if ($ENV{'SERVER'} eq '<a href="http://my_brandx_instance.com" target="_blank">my_brandx_instance.com</a><br></div>
    <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>> <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>>' ) {<div class="Ih2E3d">
<br>
          $SITE_CONFIG_FILE =<br>
    '/opt/rt3/local/etc/RT_SiteConfig_brandx.pm' ;<br>
    }<br>
<br>
    I think at the time of restarting apache something will be written<br>
    to the foo file<br>
<br>
    Roy<br>
<br>
    Doug Eubanks wrote:<br>
<br>
        Here is my relevant httpd.conf sections....I've sanitized the<br>
        hostnames......<br>
<br>
        <VirtualHost *:80><br>
           CacheEnable disk /<br>
           ServerAdmin <a href="mailto:support@brandy.com" target="_blank">support@brandy.com</a> <mailto:<a href="mailto:support@brandy.com" target="_blank">support@brandy.com</a>><br></div>
        <mailto:<a href="mailto:support@brandy.com" target="_blank">support@brandy.com</a> <mailto:<a href="mailto:support@brandy.com" target="_blank">support@brandy.com</a>>><div class="Ih2E3d"><br>
<br>
           DocumentRoot /opt/rt3/share/html<br>
           ServerName <a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>
        <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>
           ServerAlias <a href="http://tickets.brandy.com" target="_blank">tickets.brandy.com</a> <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>><br>
        <<a href="http://tickets.brandy.com" target="_blank">http://tickets.brandy.com</a>> <a href="http://tickets2.brandy.com" target="_blank">tickets2.brandy.com</a><br></div>
        <<a href="http://tickets2.brandy.com" target="_blank">http://tickets2.brandy.com</a>> <<a href="http://tickets2.brandy.com" target="_blank">http://tickets2.brandy.com</a>><div class="Ih2E3d"><br>
        <a href="http://ticket.brandy.com" target="_blank">ticket.brandy.com</a> <<a href="http://ticket.brandy.com" target="_blank">http://ticket.brandy.com</a>><br>
        <<a href="http://ticket.brandy.com" target="_blank">http://ticket.brandy.com</a>> <a href="http://ticket2.brandy.com" target="_blank">ticket2.brandy.com</a><br></div>
        <<a href="http://ticket2.brandy.com" target="_blank">http://ticket2.brandy.com</a>> <<a href="http://ticket2.brandy.com" target="_blank">http://ticket2.brandy.com</a>><div class="Ih2E3d"><br>
<br>
           AddDefaultCharset UTF-8<br>
<br>
           PerlModule Apache::DBI<br>
           PerlRequire /opt/rt3/bin/webmux.pl<br>
<br>
           PerlSetVar MasonStaticSource true<br>
           PerlSetVar MasonBufferPreallocateSize 1073741824<br>
           PerlSetVar MasonDataCacheDefaults "cache_class=><br>
        SharedMemoryCache, cache_de                         $<br>
           PerlSetVar MasonPreloads '/Elements/*'<br>
           PerlSetVar MasonCompRoot /opt/rt3<br>
<br>
           SetHandler perl-script<br>
           PerlHandler RT::Mason<br>
<br>
           Alias /titan /opt/rt3/share/html<br>
<br>
         # ScriptAlias /titan/ /opt/rt3/share/html<br>
<br>
        </VirtualHost><br>
<br>
        <VirtualHost *:80><br>
           CacheEnable disk /<br>
           ServerAdmin <a href="mailto:support@brandx.com" target="_blank">support@brandx.com</a> <mailto:<a href="mailto:support@brandx.com" target="_blank">support@brandx.com</a>><br></div>
        <mailto:<a href="mailto:support@brandx.com" target="_blank">support@brandx.com</a> <mailto:<a href="mailto:support@brandx.com" target="_blank">support@brandx.com</a>>><div class="Ih2E3d"><br>
<br>
           DocumentRoot /opt/rt3/share/html<br>
           ServerName <a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>
        <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>
           ServerAlias <a href="http://tickets.brandx.com" target="_blank">tickets.brandx.com</a> <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>><br>
        <<a href="http://tickets.brandx.com" target="_blank">http://tickets.brandx.com</a>> <a href="http://tickets2.brandx.com" target="_blank">tickets2.brandx.com</a><br></div>
        <<a href="http://tickets2.brandx.com" target="_blank">http://tickets2.brandx.com</a>> <<a href="http://tickets2.brandx.com" target="_blank">http://tickets2.brandx.com</a>><div class="Ih2E3d"><br>
        <a href="http://ticket.brandx.com" target="_blank">ticket.brandx.com</a> <<a href="http://ticket.brandx.com" target="_blank">http://ticket.brandx.com</a>><br>
        <<a href="http://ticket.brandx.com" target="_blank">http://ticket.brandx.com</a>> <a href="http://ticket2.brandx.com" target="_blank">ticket2.brandx.com</a><br></div>
        <<a href="http://ticket2.brandx.com" target="_blank">http://ticket2.brandx.com</a>> <<a href="http://ticket2.brandx.com" target="_blank">http://ticket2.brandx.com</a>><div class="Ih2E3d"><br>
<br>
           AddDefaultCharset UTF-8<br>
<br>
           PerlModule Apache::DBI<br>
           PerlRequire /opt/rt3/bin/webmux.pl<br>
<br>
           PerlSetVar MasonStaticSource true<br>
           PerlSetVar MasonBufferPreallocateSize 1073741824<br>
           PerlSetVar MasonDataCacheDefaults "cache_class=><br>
        SharedMemoryCache, cache_de                         $<br>
           PerlSetVar MasonPreloads '/Elements/*'<br>
           PerlSetVar MasonCompRoot /opt/rt3<br>
<br>
           SetHandler perl-script<br>
           PerlHandler RT::Mason<br>
<br>
           Alias /refense /opt/rt3/share/html<br>
<br>
         # ScriptAlias /refense/ /opt/rt3/share/html<br>
<br>
           ErrorLog logs/error_log-tickets<br>
<br>
        </VirtualHost><br>
<br>
        Sincerely,<br>
        Doug Eubanks<br>
        <a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br></div><div class="Ih2E3d">
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>><br>
<br>
<br></div><div class="Ih2E3d">
        On Tue, Feb 24, 2009 at 5:45 AM, Raed El-Hames<br>
        <<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>><br></div><div class="Ih2E3d">
        <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>>>> wrote:<br>
<br></div><div><div></div><div class="Wj3C7c">
           Hi Doug;<br>
<br>
           Make sure you have<br>
           ServerName   <a href="http://my_brandx_instance.com" target="_blank">my_brandx_instance.com</a><br>
        <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
           <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
        <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
<br>
           in your virtual host conf file;<br>
<br>
           <VirtualHost <a href="http://my_brandx.com:443" target="_blank">my_brandx.com:443</a> <<a href="http://my_brandx.com:443" target="_blank">http://my_brandx.com:443</a>><br>
        <<a href="http://my_brandx.com:443" target="_blank">http://my_brandx.com:443</a>>><br>
             ServerName <a href="http://my_brandx.com" target="_blank">my_brandx.com</a> <<a href="http://my_brandx.com" target="_blank">http://my_brandx.com</a>><br>
        <<a href="http://my_brandx.com" target="_blank">http://my_brandx.com</a>><br>
<br>
             DocumentRoot /opt/rt3/share/html<br>
            etc etc<br>
<br>
            ...<br>
           </VirtualHost><br>
<br>
           And remember to restart httpd ..<br>
<br>
           Good luck;<br>
           Roy<br>
<br>
           Doug Eubanks wrote:<br>
<br>
               I believe I see where you are going with this....<br>
<br>
               My problem is that $ENV{'SERVER}, $ENV{'SERVER_NAME},<br>
        etc are<br>
               not being set to anything.  When I had it print all the ENV<br>
               variables to a temp file, it only printed 4 or 5<br>
        variables and<br>
               they were stuff like "MOD_PERL" version, etc.<br>
<br>
               For some reason, those environment variables are not<br>
        set....<br>
<br>
               Sincerely,<br>
               Doug Eubanks<br>
               <a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>><br></div></div><div class="Ih2E3d">

               <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>>><br>
<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
               On Mon, Feb 23, 2009 at 12:35 PM, Raed El-Hames<br>
               <<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>><br>
        <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>>><br>
               <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>><br>
        <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a> <mailto:<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>>>>> wrote:<br>
<br>
                  Doug;<br>
<br>
                  Are you using fast cgi , or mod_perl ??, with<br>
        fastcgi you<br>
               can run<br>
                  as many instances you want  --sorry I don't use so I<br>
        do n't<br>
               have<br>
                  working apache config,<br>
                  with mod_perl you suppose to only run one instance<br>
        due to<br>
               how the<br>
                  mod_perl/mason work, however I did find a work<br>
        around and<br>
               this is<br>
                  how I got my instances working:<br>
<br>
                  for each instance (brand), I have<br>
                  RT_SiteConfig_brandx.pm (all in /opt/rt3/local/etc/ )<br>
                  webmux-brandx.pl (which is a copy of webmux.pl<br>
        adding the line<br>
                   $ENV{'SERVER'}    = '<a href="http://my_brandx_instance.com" target="_blank">my_brandx_instance.com</a><br>
        <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
               <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
                  <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>>'; #at the top where the<br>
               rest of<br>
<br>
                  $ENV is being defined<br>
<br>
                  Modify local/lib/RT.pm adding :<br>
<br>
                  if ($ENV{'SERVER'} eq '<a href="http://my_brandx_instance.com" target="_blank">my_brandx_instance.com</a><br>
        <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
               <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>><br>
                  <<a href="http://my_brandx_instance.com" target="_blank">http://my_brandx_instance.com</a>>' ) {<br>
<br>
                        $SITE_CONFIG_FILE =<br>
                  '/opt/rt3/local/etc/RT_SiteConfig_brandx.pm' ;<br>
                  }elsif ($ENV{'SERVER'} eq '<a href="http://my_brandy_instance.com" target="_blank">my_brandy_instance.com</a><br>
        <<a href="http://my_brandy_instance.com" target="_blank">http://my_brandy_instance.com</a>><br>
               <<a href="http://my_brandy_instance.com" target="_blank">http://my_brandy_instance.com</a>><br>
                  <<a href="http://my_brandy_instance.com" target="_blank">http://my_brandy_instance.com</a>>' ) {<br>
<br>
                        $SITE_CONFIG_FILE =<br>
                  '/opt/rt3/local/etc/RT_SiteConfig_brandy.pm' ;<br>
                  }<br>
<br>
                  You add these lines @ the top/start of sub LoadConfig<br>
<br>
                  In you httpd.conf you call the correct webmux for your<br>
               instance:<br>
                  PerlRequire /opt/rt3/bin/webmux-brandx.pl<br>
<br>
                  Thats it, the above setup allow you to share the same RT<br>
               directory<br>
                  , so customisation is easier,<br>
<br>
                  Hope that helps,<br>
<br>
                  Regards;<br>
                  Roy<br>
<br>
<br>
                  Doug Eubanks wrote:<br>
<br>
                      I'm trying to setup a second instance of RT that<br>
        has a<br>
                      different branding, but uses the same SQL<br>
        server, etc.<br>
<br>
                      I copied my existing (and working) RT<br>
        installation over<br>
               to a<br>
                      new directory.  Then I created the new instance in<br>
               Apache in<br>
                      the httpd.conf, changing the file locations to<br>
        the new<br>
                      directories.  Then I edited the RT_SiteConfig.pm<br>
        file to<br>
                      reflect the new file locations.<br>
<br>
                      For some reason, the errors are showing up in<br>
        the original<br>
                      directory's logs and the error returned is:<br>
                      [Mon Feb 23 15:47:56 2009] [warning]: [Mason] Cannot<br>
               resolve<br>
                      file to component:<br>
               /opt/rt3-[NEWBRAND]/share/html/index.html<br>
                      (is file outside component root?) at<br>
                                   /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm<br>
                      line 853.<br>
                                   (/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm:853)<br>
<br>
                      The browser returns a 404 error.<br>
<br>
                      What am I missing?  Is it not possible to run two RT<br>
               instances<br>
                      on the same server?<br>
<br>
                      Sincerely,<br>
                      Doug Eubanks<br>
                      <a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>><br>
               <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>>><br>
                      <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>><br>
               <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>><br>
        <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a> <mailto:<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a>>>>><br>
<br>
<br>
<br>
<br>
<br>
                  <<a href="http://www.vialtus.com/disclaimer.html" target="_blank">http://www.vialtus.com/disclaimer.html</a>><br>
<br>
<br>
<br>
<br>
</div></div></blockquote>
<br>
</blockquote></div><br>