Post to the list. My first was rejected due to an error on my part.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Josh Boon</b> <span dir="ltr"><<a href="mailto:qwert2332@gmail.com" target="_blank">qwert2332@gmail.com</a>></span><br>
Date: Sun, Apr 11, 2010 at 16:17<br>
Subject: Re: [rt-users] RT3 vs. Default Apache Page<br>To: Joseph Spenner <<a href="mailto:joseph85750@yahoo.com" target="_blank">joseph85750@yahoo.com</a>><br>Cc: <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br>
<br><br>Joesph,<br><br>Yep you can change your config to look like this:<br><pre style="margin-left: 40px;"><br></pre><div style="margin-left: 40px;">NameVirtualHost *<br><br><VirtualHost *><br> ServerName *<div>
<br>
DocumentRoot /opt/rt3/share/html<br> AddDefaultCharset UTF-8<br><br>
PerlModule Apache::DBI<br> PerlRequire /opt/rt3/bin/<a href="http://webmux.pl/" target="_blank">webmux.pl</a><br><br>
<Location /><br> SetHandler perl-script<br>
PerlHandler RT::Mason<br> </Location><br></VirtualHost><br></div></div><br>If the server ended up needing to run something else using the same apache instance you can add a second host still by following the configuration examples at <a href="http://httpd.apache.org/docs/1.3/vhosts/name-based.html" target="_blank">http://httpd.apache.org/docs/1.3/vhosts/name-based.html</a>. Remember that all generic requests will go to the first vhost found and specific ones will go to the vhost specified.<br>
<br>All the best,<br>Josh<br><br><div class="gmail_quote"><div><div></div><div>On Sun, Apr 11, 2010 at 13:54, Joseph Spenner <span dir="ltr"><<a href="mailto:joseph85750@yahoo.com" target="_blank">joseph85750@yahoo.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">My RT3 works great, but I have an apache config question regarding the default page.<br>I often want to connect into my RT via SSH. I do this by building an ssh port forward-- something like:<br>
<br>ssh -l joseph -L 10080:<a href="http://10.4.5.6:80" target="_blank">10.4.5.6:80</a> ip.of.external.system<br><br>Then if I <a href="http://127.0.0.1:10080" target="_blank">http://127.0.0.1:10080</a> I would like to access RT. However, upon doing so, I get the default apache page. My apache config has:<br>
<br>===<br><VirtualHost 10.4.5.6><br> ServerName 10.4.5.6<br>
DocumentRoot /opt/rt3/share/html<br> AddDefaultCharset UTF-8<br><br>
PerlModule Apache::DBI<br> PerlRequire /opt/rt3/bin/<a href="http://webmux.pl" target="_blank">webmux.pl</a><br><br>
<Location /><br> SetHandler perl-script<br>
PerlHandler RT::Mason<br> </Location><br></VirtualHost><br>===<br><br>I believe the problem is due to the ServerName 10.4.5.6.<br>For testing, if I make it this: ServerName <a href="http://127.0.0.1:10080" target="_blank">127.0.0.1:10080</a><br>
RT is accessible through the port forward. But this config will break it for the internal people.<br><br>This web server doesn't need to serve any other content. Can I simply remove the VirtualHost tags and modify the config such that no matter how this web server is reached it will serve RT?<br>
<br>Thanks!<br><br><br>If life gives you lemons, keep them-- because hey.. free lemons.</td></tr></tbody></table><br>
<br><br></div></div>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br></blockquote></div><br>
</div><br>