Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-24 Thread Christoph P. Kukulies
On Thu, Nov 22, 2007 at 05:24:03PM +0100, Rainer Jung wrote:
 Christoph P. Kukulies wrote:
 Thanks for the replies.
 
 I managed it finally with ProxyPass and ProxyPassReverse
 
 What has caused all the headache was the fact that
 the backend server (application server that ran the forum)
 had a html meta refresh tag in it's /index.html
 and that did not get translated by the proxypass directives.
 I don't know whether this is normal behaviour or a bug.
 
 Rewriting of answers if ProxyPassReverse. But this only handles explicit 
 redirects, not those embedded in the content via meta tags. There is 
 also a directive to rewrite cookies.
 
 In case you need to rewrite parts of the response bodies, you can google 
 for mod_proxy_html, which is a module produced by one of the httpd 
 committers (Nick Kew). The task of rewriting parts of the response body 
 is more complicated though, from a configuration point of view, but also 
 from a resource point of view (CPU).
 
 Regards,
 
 Rainer

Thanks, Rainer,

in the end I used mod_proxy_html also for other purposes (to make the 
forum on the application server work at all).

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-22 Thread Christoph P. Kukulies
Thanks for the replies.

I managed it finally with ProxyPass and ProxyPassReverse

What has caused all the headache was the fact that
the backend server (application server that ran the forum)
had a html meta refresh tag in it's /index.html
and that did not get translated by the proxypass directives.
I don't know whether this is normal behaviour or a bug.

The request always came back with the refresh address of the backend
server which could not be resolved or accessd by the client.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

 response back to the client.
 
 That's not the way I understand the reverse proxy... the request *is 
 handled by the backend server, the front end server is used to route the 
 request. Some folks use mod_rewrite with mod_proxy to integrate the 
 namespace so the backend server appears transparent, but what is really 
 happening is that the URL's are rewritten on the fly.
 
 Peter
 
 Christoph P. Kukulies wrote:
 I know this may not be the correct mailing list but maybe
 I can find an expert here - I didn't get an answer yet
 in any apache forum I knew of:
 
 I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS
 running as a content management system)
 
 Furthermore I have an application server in my intranet which can be 
 accessed
 by a firewall rule also from my webserver through the internet.
 
 I'm trying to put some statements in my sites Virtual host section
 to map request going to
 
 http://www.mycompany.com/forum to http://forum.mycompany.com/
 
 doing it by
 
 ProxyPass   /forum/ http://forum.mycompany.com/
 ProxyPassReverse /forum/ http://forum.mycompany.com
 
 I have barred the server http://forum.mycompany.com to the Internet
 and only a request coming directly from www.mycompany.com is being let 
 through.
 
 What happens is that when I access the site from the outside (INternet)
 and enter http://www.mycompany.com/forum/ in the browser
 I'm seeing that the client (browser, lower left corner in Firefox)
 tries to connect directly to forum.mycompany.com which it shouldn't.
 
  From my understanding the site server should do the request and pass the
 response back to the client.
 
 Please help.
 
 
 --
 Chris Christoph P. U. Kukulies kuku_at_kukulies.org
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-22 Thread Rainer Jung

Christoph P. Kukulies wrote:

Thanks for the replies.

I managed it finally with ProxyPass and ProxyPassReverse

What has caused all the headache was the fact that
the backend server (application server that ran the forum)
had a html meta refresh tag in it's /index.html
and that did not get translated by the proxypass directives.
I don't know whether this is normal behaviour or a bug.


Rewriting of answers if ProxyPassReverse. But this only handles explicit 
redirects, not those embedded in the content via meta tags. There is 
also a directive to rewrite cookies.


In case you need to rewrite parts of the response bodies, you can google 
for mod_proxy_html, which is a module produced by one of the httpd 
committers (Nick Kew). The task of rewriting parts of the response body 
is more complicated though, from a configuration point of view, but also 
from a resource point of view (CPU).


Regards,

Rainer



The request always came back with the refresh address of the backend
server which could not be resolved or accessd by the client.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


response back to the client.
That's not the way I understand the reverse proxy... the request *is 
handled by the backend server, the front end server is used to route the 
request. Some folks use mod_rewrite with mod_proxy to integrate the 
namespace so the backend server appears transparent, but what is really 
happening is that the URL's are rewritten on the fly.


Peter

Christoph P. Kukulies wrote:

I know this may not be the correct mailing list but maybe
I can find an expert here - I didn't get an answer yet
in any apache forum I knew of:

I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS
running as a content management system)

Furthermore I have an application server in my intranet which can be 
accessed

by a firewall rule also from my webserver through the internet.

I'm trying to put some statements in my sites Virtual host section
to map request going to

http://www.mycompany.com/forum to http://forum.mycompany.com/

doing it by

ProxyPass   /forum/ http://forum.mycompany.com/
ProxyPassReverse /forum/ http://forum.mycompany.com

I have barred the server http://forum.mycompany.com to the Internet
and only a request coming directly from www.mycompany.com is being let 
through.


What happens is that when I access the site from the outside (INternet)
and enter http://www.mycompany.com/forum/ in the browser
I'm seeing that the client (browser, lower left corner in Firefox)
tries to connect directly to forum.mycompany.com which it shouldn't.

From my understanding the site server should do the request and pass the
response back to the client.

Please help.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-13 Thread Pedro

From my understanding the site server should do the request and pass the
response back to the client.


That's not the way I understand the reverse proxy... the request *is 
handled by the backend server, the front end server is used to route the 
request. Some folks use mod_rewrite with mod_proxy to integrate the 
namespace so the backend server appears transparent, but what is really 
happening is that the URL's are rewritten on the fly.


Peter

Christoph P. Kukulies wrote:

I know this may not be the correct mailing list but maybe
I can find an expert here - I didn't get an answer yet
in any apache forum I knew of:

I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS
running as a content management system)

Furthermore I have an application server in my intranet which can be accessed
by a firewall rule also from my webserver through the internet.

I'm trying to put some statements in my sites Virtual host section
to map request going to

http://www.mycompany.com/forum to http://forum.mycompany.com/

doing it by

ProxyPass   /forum/ http://forum.mycompany.com/
ProxyPassReverse /forum/ http://forum.mycompany.com

I have barred the server http://forum.mycompany.com to the Internet
and only a request coming directly from www.mycompany.com is being let through.

What happens is that when I access the site from the outside (INternet)
and enter http://www.mycompany.com/forum/ in the browser
I'm seeing that the client (browser, lower left corner in Firefox)
tries to connect directly to forum.mycompany.com which it shouldn't.

 From my understanding the site server should do the request and pass the
response back to the client.

Please help.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-12 Thread Gregor Schneider
Hi Christoph,

please post your question here: You should get some answers almost
instantly:

The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371


Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-12 Thread Filip Hanik - Dev Lists

On Tomcat side
proxyHost and proxyPort in the Connector element

on the apache sidfe
ProxyPreserveHost On

if you do the apache side, you can remove the proxyHost on the tomcat side

Filip

Christoph P. Kukulies wrote:

I know this may not be the correct mailing list but maybe
I can find an expert here - I didn't get an answer yet
in any apache forum I knew of:

I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS
running as a content management system)

Furthermore I have an application server in my intranet which can be accessed
by a firewall rule also from my webserver through the internet.

I'm trying to put some statements in my sites Virtual host section
to map request going to

http://www.mycompany.com/forum to http://forum.mycompany.com/

doing it by

ProxyPass   /forum/ http://forum.mycompany.com/
ProxyPassReverse /forum/ http://forum.mycompany.com

I have barred the server http://forum.mycompany.com to the Internet
and only a request coming directly from www.mycompany.com is being let through.

What happens is that when I access the site from the outside (INternet)
and enter http://www.mycompany.com/forum/ in the browser
I'm seeing that the client (browser, lower left corner in Firefox)
tries to connect directly to forum.mycompany.com which it shouldn't.

 From my understanding the site server should do the request and pass the
response back to the client.

Please help.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]