<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I managed to get this to work without a separate virtual host for
    each.  We have nagios, rt, the nagios rt interface for when
    something irksome comes up when the office is closed, and an
    intra-office website.  Works really well, tho we have a smaller
    setup.   This way its just domain/ for the web doman/rt and
    domain/nagios.<br>
    <br>
    Hope this helps.   Tho a simple virtual host for a nagios.domain.tld
    would work just as well.<br>
    <br>
    -Matt<br>
    <br>
    <br>
    ----------------conf----------------<br>
    <VirtualHost 0:80><br>
            ServerName server.place.tld<br>
            ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:lab@pacbell.net">lab@pacbell.net</a><br>
    <br>
            ErrorLog /var/log/apache2.error<br>
            TransferLog /var/log/apache2.access<br>
            LogLevel debug<br>
    <br>
            DocumentRoot /var/www<br>
            <Directory /var/www><br>
                    Order allow,deny<br>
                    Allow from all<br>
            </Directory><br>
    <br>
    <br>
            <Location /rt><br>
                Order allow,deny<br>
                Allow from all<br>
    <br>
                SetHandler perl-script<br>
                PerlResponseHandler Plack::Handler::Apache2<br>
                PerlSetVar psgi_app /opt/rt4/sbin/rt-server<br>
            </Location><br>
            <Perl><br>
                use Plack::Handler::Apache2;<br>
               
    Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");<br>
            </Perl><br>
    <br>
    <Directory "/usr/local/nagios/sbin"><br>
       Options ExecCGI<br>
       AllowOverride None<br>
       Order allow,deny<br>
       Allow from all<br>
       AuthName "Nagios Access"<br>
       AuthType Basic<br>
       AuthUserFile /place/to/look<br>
       Require valid-user<br>
    </Directory><br>
    <br>
    Alias /nagios "/usr/local/nagios/share"<br>
    <br>
    <Directory "/usr/local/nagios/share"><br>
       Options None<br>
       AllowOverride None<br>
       Order allow,deny<br>
       Allow from all<br>
       AuthName "Nagios Access"<br>
       AuthType Basic<br>
       AuthUserFile /place/to/look<br>
       Require valid-user<br>
    </Directory><br>
    <br>
    </VirtualHost><br>
    <br>
    ----------------eof----------------<br>
    <br>
    <br>
    On 11/30/2011 6:25 AM, Bart wrote:
    <blockquote
cite="mid:CAB2d3raE+j4yV3nzH2QrNYS41_oBMNQri+tncQTLp4USZ5Xm6w@mail.gmail.com"
      type="cite">Do you have RT setup as a separate virtualhost?
      <div><br>
      </div>
      <div>This is how our config looks a.t.m. for a specific vhost for
        RT, but it's the only vhost so we have the IP set to *. I assume
        you have a separate hostname for RT?!</div>
      <div><br>
      </div>
      <div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><VirtualHost *:80></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">        ErrorLog /opt/rt4/var/log/apache2.error</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace">        TransferLog
            /opt/rt4/var/log/apache2.access</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>RewriteEngine On</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>RewriteCond %{HTTPS} off</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>RewriteRule (.*)
            <a class="moz-txt-link-freetext" href="https://%">https://%</a>{HTTP_HOST}%{REQUEST_URI}</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"></VirtualHost></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><VirtualHost *:443></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>ErrorLog
            /opt/rt4/var/log/apache2.error</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>TransferLog
            /opt/rt4/var/log/apache2.access</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span># LogLevel debug</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>AddDefaultCharset UTF-8</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>DocumentRoot
            "/opt/rt4/share/html"</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span><Location /></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>Order allow,deny</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>Allow from all</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>SetHandler perl-script</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>PerlResponseHandler
            Plack::Handler::Apache2</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>PerlSetVar psgi_app
            /opt/rt4/sbin/rt-server</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span></Location></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span><Perl></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>use
            Plack::Handler::Apache2;</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span></Perl></font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><br>
          </font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>SSLEngine on</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"><span class="Apple-tab-span"
              style="white-space:pre"> </span>SSLCertificateFile
            /etc/ssl/certs/rt.example.com-cert.pem</font></div>
        <div><font class="Apple-style-span" face="'courier new',
            monospace"></VirtualHost></font></div>
      </div>
      <div><br>
      </div>
      <div>If you reserve a different hostname for RT then this should
        work quite well.</div>
      <div>
        <br>
      </div>
      <div><br clear="all">
        -- Bart<br>
        <br>
        <br>
        <div class="gmail_quote">Op 30 november 2011 15:12 schreef
          Greenberg, Joshua L <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:Joshua.Greenberg@constellation.com">Joshua.Greenberg@constellation.com</a>></span>
          het volgende:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <div link="blue" vlink="purple" lang="EN-US">
              <div>
                <p class="MsoNormal">Hi,</p>
                <p class="MsoNormal"> </p>
                <p class="MsoNormal">I’ve installed RT and it’s working
                  fine but if I install it on a server running any other
                  web sites, it breaks those web sites. I’d really like
                  to put this on the same box that runs nagios but
                  nagios breaks as soon as I do that. The logs are
                  throwing mason errors when I try to load the nagios 
                  page because it is trying to use RT’s perl
                  configuration for everything. I’m using the default RT
                  apache config and the default nagios config. Nagios
                  does not use a virtual host. I’ve never been great
                  with apache configs and I suspect this is something
                  really simple like changing a host name or IP address
                  in the virtual host but I’m not sure. Any thoughts or
                  ideas would be appreciated. Thank you.</p>
              </div>
              <p>>>> This e-mail and any attachments are
                confidential, may contain legal,<br>
                professional or other privileged information, and are
                intended solely for the<br>
                addressee.  If you are not the intended recipient, do
                not use the information<br>
                in this e-mail in any way, delete this e-mail and notify
                the sender. CEG-IP2</p>
            </div>
            <br>
            --------<br>
            RT Training Sessions (<a moz-do-not-send="true"
              href="http://bestpractical.com/services/training.html"
              target="_blank">http://bestpractical.com/services/training.html</a>)<br>
            * Boston — TBA<br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--------
RT Training Sessions (<a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>)
* Boston — TBA</pre>
    </blockquote>
    <br>
  </body>
</html>