Trouble with Reverse Proxy and Back End Scripts

This is a multi-part message in MIME format.

------_=_NextPart_001_01C25A58.2F43F30F
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am trying to hide my MS Exchange web-mail server (IIS) behind an
Apache web server by using Apache as a reverse proxy. The proxy
functions as far as passing data from the IIS server to the Internet
client but in doing so, it breaks the Java and VB scripts used in the
web pages being reverse proxied. Script source code appears where the
java script is located on the page. I have spent a good deal of time
attempting to resolve this on my own but have not been able to do so.

Is this a problem with Apache or do I have a configuration problem?

I'm using Apache 1.3.23-14 on RedHat 7.3
The relevant portion of my httpd.conf file is below. .

Any help would be greatly appreciated.

Thanks,
Ernie




<VirtualHost 10.0.0.13:443>
DocumentRoot /www/mail.halkey-roberts.com/html
ServerName mail.halkey-roberts.com

SSLEngine on
SSLCertificateFile /etc/httpd/ssl/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/server.key
SetEnvIf User-Agent ".MSIE.*" nokeepalive ssl-unclean-shutdown

ProxyPass / http://mail.halkey-roberts.com/exchange/
ProxyPassReverse / http://mail.halkey-roberts.com/exchange/

ProxyPass /exchange/ http://mail.halkey-roberts.com/exchange/
ProxyPassReverse /exchange/ http://mail.halkey-roberts.com/exchange/

LOG FILES
ErrorLog /www/mail.halkey-roberts.com/logs/ErrorLog.log
TransferLog /www/mail.halkey-roberts.com/logs/TransLog.log
AgentLog /www/mail.halkey-roberts.com/logs/BrowserLog.log
RefererIgnore 10.0.0.0/8

</VirtualHost>


------_=_NextPart_001_01C25A58.2F43F30F
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>I am =
trying to
hide my MS Exchange web-mail server (IIS) behind an Apache web
server by using Apache as a reverse proxy.  The proxy =
functions as far
as passing data from the IIS server to the Internet client but in doing =
so, it
breaks the Java and VB scripts used in the web pages being reverse
proxied.  Script source code appears where the java script is =
located on
the page.  I have spent a good deal of time attempting to resolve =
this on
my own but have not been able to do so.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>Is =
this a problem
with Apache or do I have a configuration problem?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>I'm =
using Apache
1.3.23-14 on RedHat 7.3</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>The =
relevant portion
of my httpd.conf file is below. .</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>Any =
help would be
greatly appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002>Ernie</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D109165422-10092002><VirtualHost
10.0.0.13:443><BR>  DocumentRoot
/www/mail.halkey-roberts.com/html<BR>  ServerName
mail.halkey-roberts.com</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>  =
SSLEngine
on<BR>    SSLCertificateFile
/etc/httpd/ssl/server.crt<BR>    SSLCertificateKeyFile
/etc/httpd/ssl/server.key<BR>    SetEnvIf User-Agent =
".MSIE.*"
nokeepalive ssl-unclean-shutdown</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D109165422-10092002></SPAN></FONT><FONT
face=3DArial size=3D2><SPAN =
class=3D109165422-10092002><BR>   
ProxyPass / <A
href=3D"http://mail.halkey-roberts.com/exchange/">http://mai l.halkey-robe=
rts.com/exchange/</A><BR>   
ProxyPassReverse / <A
href=3D"http://mail.halkey-roberts.com/exchange/">http://mai l.halkey-robe=
rts.com/exchange/</A></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D109165422-10092002>   
ProxyPass /exchange/ <A
href=3D"http://mail.halkey-roberts.com/exchange/">http://mai l.halkey-robe=
rts.com/exchange/</A><BR>   
ProxyPassReverse /exchange/ <A
href=3D"http://mail.halkey-roberts.com/exchange/">http://mai l.halkey-robe=
rts.com/exchange/</A></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D109165422-10092002>  =
LOG
FILES<BR>   ErrorLog
/www/mail.halkey-roberts.com/logs/ErrorLog.log<BR>   =
TransferLog
/www/mail.halkey-roberts.com/logs/TransLog.log<BR>   AgentLog
/www/mail.halkey-roberts.com/logs/BrowserLog.log<BR>   =
RefererIgnore
10.0.0.0/8</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D109165422-10092002></VirtualHost><BR></SPAN></FONT></DIV></=
BODY></HTML>
=00
------_=_NextPart_001_01C25A58.2F43F30F--
ecorreale [ Do, 12 September 2002 14:30 ] [ ID #12180 ]

Re: Trouble with Reverse Proxy and Back End Scripts

Correale, Ernest wrote:

> I am trying to hide my MS Exchange web-mail server (IIS) behind an
> Apache web server by using Apache as a reverse proxy. The proxy
> functions as far as passing data from the IIS server to the Internet
> client but in doing so, it breaks the Java and VB scripts used in the
> web pages being reverse proxied. Script source code appears where the
> java script is located on the page. I have spent a good deal of time
> attempting to resolve this on my own but have not been able to do so.
>
> Is this a problem with Apache or do I have a configuration problem?
>
> I'm using Apache 1.3.23-14 on RedHat 7.3

The problem is most probably Apache - there have been a number of
important fixes in v1.3.26 from .23.

Unfortunately Redhat has done absolutely nothing about releasing a new
version of Apache despite being notified of these problems over three
months ago, and being subsequently chased up about this.

As a result of this, I would recommend you build from source, or install
a binary and see if that solves your problems.

Regards,
Graham
--
-----------------------------------------
minfrin [at] sharp.fm "There's a moon
over Bourbon Street
tonight..."
Graham Leggett [ Fr, 13 September 2002 11:16 ] [ ID #12181 ]

RE: Trouble with Reverse Proxy and Back End Scripts

Umm, redhat did nothing???

http://rhn.redhat.com/errata/RHSA-2002-103.html

Redhat back-ported the patch for 1.3.22 so you wouldn't lose backwards
compatiblity.

-Jason Yates

> -----Original Message-----
> From: Graham Leggett [mailto:minfrin [at] sharp.fm]
> Sent: Friday, September 13, 2002 5:16 AM
> To: modproxy-dev [at] apache.org
> Subject: Re: Trouble with Reverse Proxy and Back End Scripts
>
>
> Correale, Ernest wrote:
>
> > I am trying to hide my MS Exchange web-mail server (IIS) behind an
> > Apache web server by using Apache as a reverse proxy. The proxy
> > functions as far as passing data from the IIS server to the Internet
> > client but in doing so, it breaks the Java and VB scripts used in the
> > web pages being reverse proxied. Script source code appears where the
> > java script is located on the page. I have spent a good deal of time
> > attempting to resolve this on my own but have not been able to do so.
> >
> > Is this a problem with Apache or do I have a configuration problem?
> >
> > I'm using Apache 1.3.23-14 on RedHat 7.3
>
> The problem is most probably Apache - there have been a number of
> important fixes in v1.3.26 from .23.
>
> Unfortunately Redhat has done absolutely nothing about releasing a new
> version of Apache despite being notified of these problems over three
> months ago, and being subsequently chased up about this.
>
> As a result of this, I would recommend you build from source, or install
> a binary and see if that solves your problems.
>
> Regards,
> Graham
> --
> -----------------------------------------
> minfrin [at] sharp.fm "There's a moon
> over Bourbon Street
> tonight..."
>
>
Jason Yates [ Fr, 13 September 2002 22:43 ] [ ID #12182 ]

Re: Trouble with Reverse Proxy and Back End Scripts

Jason Yates wrote:

> Umm, redhat did nothing???
>
> http://rhn.redhat.com/errata/RHSA-2002-103.html

Yep, unfortunately RH has done nothing to date :(

The URL you link to above has nothing to do with the problem being
discussed.

Regards,
Graham
--
-----------------------------------------
minfrin [at] sharp.fm "There's a moon
over Bourbon Street
tonight..."
Graham Leggett [ So, 15 September 2002 23:59 ] [ ID #12183 ]
Webserver » gmane.comp.apache.mod-proxy » Trouble with Reverse Proxy and Back End Scripts

Vorheriges Thema: proxy send body time out
Nächstes Thema: mod_proxy fails to shutdown when client cancels