<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Problem accessing RT located behind an apache proxy</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=366283116-29102007>Most likely you'll need to use something like
mod_proxy_html to manipulate occurances of the private address within the body
of the http stream. You could confirm this by using Wireshark to look at the
contents of the http replies on both sides of the Apache server and see exactly
where the offending addresses are being embedded.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=366283116-29102007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=366283116-29102007>mod_proxy_html is a perfect tool for doing in-line
rewrites of javascript, css and other complexities generated by proxied web
apps. See <A
href="http://apache.webthing.com/mod_proxy_html/">http://apache.webthing.com/mod_proxy_html/</A></SPAN></FONT><BR></DIV>
<DIV dir=ltr align=left><SPAN class=366283116-29102007><FONT face=Arial
color=#0000ff size=2>Kris Boutilier</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=366283116-29102007><FONT face=Arial
color=#0000ff size=2>Information Services Coordinator</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=366283116-29102007><FONT face=Arial
color=#0000ff size=2>Sunshine Coast Regional District</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of
</B>Schincke, Keith D. (JSC-IT)[MEI]<BR><B>Sent:</B> Sunday, October 28, 2007
8:33 AM<BR><B>To:</B> rt-users@lists.bestpractical.com<BR><B>Subject:</B>
[rt-users] Problem accessing RT located behind an apache
proxy<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2>Hey Guys,<BR><BR>I am having issues accessing parts of my RT
installation while it is located behind an apache proxy.<BR><BR>My
configuration is:<BR> RT is installed on a server on a private
network.<BR> Apache is installed on a server on the public network that
will proxy with mod_rewrite access to the RT server.<BR><BR>This configuration
works great for most parts of the RT system. Tickets can be looked at. Users
can be added.<BR>The problem occurs when a ticket or user is
updated.<BR><BR>When a ticket is updated, Update.html is called, the ticket is
update and the browser is redirected to Display.html.<BR><BR>The redirect is
what is causing my problems. The application is tries to send the browser to
the private IP address to load Display.html.<BR><BR>Here is my
configuration:<BR>Front end apache server:<BR>Centos 4.5<BR>httpd
2.0.52<BR><BR>Here are the rewrite rules:<BR><VirtualHost
*:80><BR> RewriteEngine on<BR> RewriteLog
/var/log/httpd/rewrite.log<BR> RewriteLogLevel 2<BR>
RewriteRule ^/$ <A href="http://10.0.0.1/rt">http://10.0.0.1/rt</A>
[P,L]<BR> RewriteRule ^/(.*)$ <A
href="http://10.0.0.1/$1">http://10.0.0.1/$1</A> [P,L]<BR>
ProxyPass / <A
href="http://rt.example.com/">http://rt.example.com/</A><BR>
ProxyPassReverse / <A
href="http://rt.example.com/">http://rt.example.com/</A><BR></VirtualHost><BR><BR><BR>Backend
server:<BR>Debian etch<BR>Aapche 2<BR>RT 3.6<BR><BR>My $WebBaseURL is <A
href="http://rt.example.com">http://rt.example.com</A><BR><BR>Any suggestions
on what may be causing the rewrite to not work correctly?<BR><BR>Thanks for
any help,<BR><BR>Keith</FONT> </P></BLOCKQUOTE></BODY></HTML>