<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>Hi</div>
<div><br>
</div>
<div>I have been working on migrating our existing old RT 3.8.8 to RT 4.2.9. </div>
<div><br>
</div>
<div>We currently have two domains that point towards the same RT – and that works in RT 3.8.8 – and I’d like to have the same setup in the new RT, so I don’t break any links to the two current domains that I am not aware of…</div>
<div>But – when I try to do something similar with RT 4.2.9 + Apache2 + fastcgi – the first vhost resolves just fine – whereas the second site just hangs…..</div>
<div><br>
</div>
<div>My guess is I am doing something wrong – how to make two vhosts in apache2 point to the same RT backend with fastcgi?</div>
<div>A pointer in the right direction will be deeply appreciated.</div>
<div><br>
</div>
<div>My Apache config looks as follows:</div>
<div><br>
</div>
<div>
<div># Tell FastCGI to put its temporary files somewhere sane; this may</div>
<div> # be necessary if your distribution doesn't already set it</div>
<div> FastCgiIpcDir /opt/rt4/tmp</div>
<div><br>
</div>
<div> FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300</div>
<div><br>
</div>
<div> NameVirtualHost rt4.example.com:80</div>
<div> NameVirtualHost rt4-test.example.com:80</div>
<div> Listen 80</div>
<div><br>
</div>
<div> NameVirtualHost rt4.example.com:443</div>
<div> NameVirtualHost rt4-test.example.com:443</div>
<div> Listen 443</div>
<div><br>
</div>
<div> <VirtualHost rt4.example.com:80></div>
<div> ServerName rt4.example.com</div>
<div> ErrorLog "/var/log/httpd/rt4_error_log"</div>
<div> CustomLog "/var/log/httpd/rt4_access_log" common</div>
<div> RedirectPermanent / https://rt4.example.com/</div>
<div> </VirtualHost></div>
<div><br>
</div>
<div> <VirtualHost rt4-test.example.com:80></div>
<div> ServerName rt4-test.example.com</div>
<div> ErrorLog "/var/log/httpd/rt4_error_log"</div>
<div> CustomLog "/var/log/httpd/rt4_access_log" common</div>
<div> RedirectPermanent / https://rt4-test.example.com/</div>
<div> </VirtualHost></div>
</div>
<div><br>
</div>
<div>
<div> <VirtualHost rt4.example.com:443></div>
<div> ServerName rt4.example.com</div>
<div> ### Optional apache logs for RT</div>
<div> # Ensure that your log rotation scripts know about these files</div>
<div> ErrorLog /opt/rt4/var/log/apache2.error</div>
<div> TransferLog /opt/rt4/var/log/apache2.access</div>
<div> LogLevel debug</div>
<div><br>
</div>
<div> SSLEngine on</div>
<div> SSLCertificateChainFile /etc/httpd/ssl/secret.cer</div>
<div> SSLCertificateFile /etc/httpd/ssl/certificate.pem</div>
<div> SSLCertificateKeyFile /etc/httpd/ssl/certificate.key</div>
<div><br>
</div>
<div> AddDefaultCharset UTF-8</div>
<div><br>
</div>
<div> ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/</div>
<div><br>
</div>
<div> DocumentRoot "/opt/rt4/share/html"</div>
<div><br>
</div>
<div> <Location /></div>
<div> Order allow,deny</div>
<div> Allow from all</div>
<div><br>
</div>
<div> Options +ExecCGI</div>
<div> AddHandler fastcgi-script fcgi</div>
<div> </Location></div>
<div> </VirtualHost></div>
</div>
<div><br>
</div>
<div>
<div> <VirtualHost rt4-test.example.com:443></div>
<div> ServerName rt4-test.example.com</div>
<div> ### Optional apache logs for RT</div>
<div> # Ensure that your log rotation scripts know about these files</div>
<div> ErrorLog /opt/rt4/var/log/apache2.error</div>
<div> TransferLog /opt/rt4/var/log/apache2.access</div>
<div> LogLevel debug</div>
<div><br>
</div>
<div> SSLEngine on</div>
<div> SSLCertificateChainFile /etc/httpd/ssl/secret.cer</div>
<div> SSLCertificateFile /etc/httpd/ssl/certificate.pem</div>
<div> SSLCertificateKeyFile /etc/httpd/ssl/certificate.key</div>
<div><br>
</div>
<div> AddDefaultCharset UTF-8</div>
<div><br>
</div>
<div> ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/</div>
<div><br>
</div>
<div> DocumentRoot "/opt/rt4/share/html"</div>
<div><br>
</div>
<div> <Location /></div>
<div> Order allow,deny</div>
<div> Allow from all</div>
<div><br>
</div>
<div> Options +ExecCGI</div>
<div> AddHandler fastcgi-script fcgi</div>
<div> </Location></div>
<div> </VirtualHost></div>
</div>
<div><br>
</div>
<div>
<div>— </div>
<div>Kind Regards,</div>
<div>Sidsel Jensen</div>
<div><br>
</div>
</div>
</body>
</html>