From fhopkins@example.org Thu Feb 05 07:37:21 2004
Return-Path: <fhopkins@example.org>
Delivered-To: fhopkins@example.org
Received: (qmail 42700 invoked from network); 5 Feb 2004 07:37:21 -0000
Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 5 Feb 2004 07:37:21 -0000
Received: (qmail 90133 invoked by uid 500); 5 Feb 2004 07:36:53 -0000
Delivered-To: fhopkins@example.org
Received: (qmail 90085 invoked by uid 500); 5 Feb 2004 07:36:52 -0000
Mailing-List: contact fhopkins@example.org; run by ezmlm
Precedence: bulk
Reply-To: fhopkins@example.org
list-help: <mailto:fhopkins@example.org>
list-unsubscribe: <mailto:fhopkins@example.org>
list-post: <mailto:fhopkins@example.org>
Delivered-To: mailing list fhopkins@example.org
Received: (qmail 89775 invoked from network); 5 Feb 2004 07:36:49 -0000
Message-ID: <fhopkins@example.org>
Date: Wed, 04 Feb 2004 19:32:55 +0200
From: Graham Leggett <fhopkins@example.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: fhopkins@example.org
Subject: Re: ProxyAllow addition to mod_proxy
References: <fhopkins@example.org>
In-Reply-To: <fhopkins@example.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by fhopkins@example.org
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

Rob Reilly wrote:

> ProxyAllow as opposite for ProxyBlock

> 1.  Do you see any benefit to adding this functionality to the Apache source?

Very useful - post a patch :)

Regards,
Graham
--



From fhopkins@example.org Sun Feb 15 19:59:26 2004
Return-Path: <fhopkins@example.org>
Delivered-To: fhopkins@example.org
Received: (qmail 24522 invoked from network); 15 Feb 2004 19:59:26 -0000
Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 15 Feb 2004 19:59:26 -0000
Received: (qmail 76339 invoked by uid 500); 15 Feb 2004 19:59:15 -0000
Delivered-To: fhopkins@example.org
Received: (qmail 76310 invoked by uid 500); 15 Feb 2004 19:59:15 -0000
Mailing-List: contact fhopkins@example.org; run by ezmlm
Precedence: bulk
Reply-To: fhopkins@example.org
list-help: <mailto:fhopkins@example.org>
list-unsubscribe: <mailto:fhopkins@example.org>
list-post: <mailto:fhopkins@example.org>
Delivered-To: mailing list fhopkins@example.org
Received: (qmail 76297 invoked from network); 15 Feb 2004 19:59:15 -0000
Message-ID: <fhopkins@example.org>
Date: Sun, 15 Feb 2004 11:59:20 -0800 (PST)
From: Jason Sheneman <fhopkins@example.org>
Subject: mod_proxy proxypassreverse on Form Sumbit
To: fhopkins@example.org
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-420399058-1076875160=:1814"
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

--0-420399058-1076875160=:1814
Content-Type: text/plain; charset=us-ascii

I have a third party application running in apache behind a firewall.  I decide to install Apache on Windows 2000 to act as a proxy to the server behind the firewall.  I'm having trouble getting the proxypassreverse to work for me.  
 
I have www.server2.com/submit.php which is the server running the webapp.  I have www.server1.com/app1/submit.php as where the users go.  I setup my apache config to the following:
 
ProxyRequests off
 
ProxyPass /app1/ http://www.server2.com/
ProxyPassReverse / http://www.server2.com/
 
 
All seems ok at first as I have no trouble going to www.server1.com/app1/submit.php and being actually sent to www.server2.com/submit.php.  Now the submit.php page is a form that has a submit button on it.  The submit button does a POST to www.server2.com/Analyze.   What is happening is that when I click on the submit button I see the browser trying to resolve www.server2.com/Analyze instead of www.server1.com/app1/Analyze
 
However I have no trouble going to www.server1.com/app/Analyze directly.  It just seems that mod_proxy doesn't handle forms POSTs.  Any help anyone can give me to confirm or deny my findings would be much appreciated.  Also, if this should work, if anyone can give me some hints I'd be very greatful.
 
I've tried all kinds of combinations of proxypass and proxypassreverse, I just can't seem to get the response from the form post back no matter what I try.
 
Thanks...


---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
--0-420399058-1076875160=:1814
Content-Type: text/html; charset=us-ascii

<DIV>I have a third party application running in apache behind a firewall.&nbsp; I decide to install Apache on Windows 2000 to act as a proxy to the server behind the firewall.&nbsp; I'm having trouble getting the proxypassreverse to work for me.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>I have <A href="http://www.server2.com/submit.php">www.server2.com/submit.php</A> which is the server running the webapp.&nbsp; I have <A href="http://www.server1.com/app1/submit.php">www.server1.com/app1/submit.php</A> as where the users go.&nbsp; I setup my apache config to the following:</DIV>
<DIV>&nbsp;</DIV>
<DIV>ProxyRequests off</DIV>
<DIV>&nbsp;</DIV>
<DIV>ProxyPass /app1/ <A href="http://www.server2.com/">http://www.server2.com/</A></DIV>
<DIV>ProxyPassReverse / <A href="http://www.server2.com/">http://www.server2.com/</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>All seems ok at first as I have no trouble going to <A href="http://www.server1.com/app1/submit.php">www.server1.com/app1/submit.php</A> and being actually sent to <A href="http://www.server2.com/submit.php">www.server2.com/submit.php</A>.&nbsp; Now the submit.php page is a form that has a submit button on it.&nbsp; The submit button does a POST to <A href="http://www.server2.com/Analyze">www.server2.com/Analyze</A>.&nbsp;&nbsp; What is happening is that when I click on the submit button I see the browser trying to resolve <A href="http://www.server2.com/Analyze">www.server2.com/Analyze</A> instead of <A href="http://www.server1.com/app1/Analyze">www.server1.com/app1/Analyze</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>However I have no trouble going to <A href="http://www.server1.com/app/Analyze">www.server1.com/app/Analyze</A> directly.&nbsp; It just seems that mod_proxy doesn't handle forms POSTs.&nbsp; Any help anyone can give me to confirm or deny my findings would be much appreciated.&nbsp; Also, if this should work, if anyone can give me some hints I'd be very greatful.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've tried all kinds of combinations of proxypass and proxypassreverse, I just can't seem to get the response from the form post back no matter what I try.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks...</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Finance: <a href="http://us.rd.yahoo.com/evt=22055/*http://taxes.yahoo.com/filing.html">Get your refund fast by filing online</a>
--0-420399058-1076875160=:1814--

From fhopkins@example.org Mon Feb 16 08:50:41 2004
Return-Path: <fhopkins@example.org>
Delivered-To: fhopkins@example.org
Received: (qmail 48519 invoked from network); 16 Feb 2004 08:50:41 -0000
Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 16 Feb 2004 08:50:41 -0000
Received: (qmail 97747 invoked by uid 500); 16 Feb 2004 08:50:16 -0000
Delivered-To: fhopkins@example.org
Received: (qmail 97731 invoked by uid 500); 16 Feb 2004 08:50:16 -0000
Mailing-List: contact fhopkins@example.org; run by ezmlm
Precedence: bulk
Reply-To: fhopkins@example.org
list-help: <mailto:fhopkins@example.org>
list-unsubscribe: <mailto:fhopkins@example.org>
list-post: <mailto:fhopkins@example.org>
Delivered-To: mailing list fhopkins@example.org
Received: (qmail 97699 invoked from network); 16 Feb 2004 08:50:14 -0000
Message-ID: <fhopkins@example.org>
Date: Mon, 16 Feb 2004 10:49:05 +0200
From: Graham Leggett <fhopkins@example.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20040107
X-Accept-Language: en-za, en-us, en
MIME-Version: 1.0
To: fhopkins@example.org
Subject: Re: mod_proxy proxypassreverse on Form Sumbit
References: <fhopkins@example.org>
In-Reply-To: <fhopkins@example.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by fhopkins@example.org
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

Jason Sheneman wrote:

> ProxyPass /app1/ http://www.server2.com/
> ProxyPassReverse / http://www.server2.com/

> However I have no trouble going to www.server1.com/app/Analyze 
> <http://www.server1.com/app/Analyze> directly.  It just seems that 
> mod_proxy doesn't handle forms POSTs.  Any help anyone can give me to 
> confirm or deny my findings would be much appreciated.  Also, if this 
> should work, if anyone can give me some hints I'd be very greatful.

mod_proxy handles form posts fine, use them all the time.

The most likely source of your problem is your URL handling. mod_proxy 
does not attempt to rewrite data inside an HTML stream, and therefore it 
is likely the links (in your case the destination of the submit button) 
on your backend are being passed through the proxy to the browser.

A general rule of thumb that you should apply to keep yourself from 
getting headaches is to maintain the same URL strategy on the backend 
server as you do in your frontend URL space. In other words, it should 
look like this:

ProxyPass /app1/ http://www.server2.com/app1/
ProxyPassReverse /app1/ http://www.server2.com/app1/

Regards,
Graham
--



{'source': 'Apache Software Foundation Public Mail Archives'}