Apache Server configuration support - Can Apache forward requests to a different port based on Host: header?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Can Apache forward requests to a different port based on Host: header?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can Apache forward requests to a different port based on Host: header?
David Wake

2007-01-06, 8:11 pm

I have an Apache configuration question.

I want incoming requests on port 80 with "Foo" in the "Host:" Header
to be forwarded to a Tomcat instance on the same machine on port 8080

I want all other incoming requests on port 80 to be handled by Apache
in the regular manner.

Is there any way to configure Apache to do the forwarding?

Thank you,

David
barbaganusio

2007-01-06, 8:11 pm

There are a couple of ways of doing this . Check out mod_rewrite for
instance
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

--Renzo
David Wake wrote:
> I have an Apache configuration question.
>
> I want incoming requests on port 80 with "Foo" in the "Host:" Header
> to be forwarded to a Tomcat instance on the same machine on port 8080
>
> I want all other incoming requests on port 80 to be handled by Apache
> in the regular manner.
>
> Is there any way to configure Apache to do the forwarding?
>
> Thank you,
>
> David


Renzo Zagni

2007-01-06, 8:11 pm

There are a couple of ways of doing this . Check out mod_rewrite for
instance
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

--Renzo

David Wake wrote:
> I have an Apache configuration question.
>
> I want incoming requests on port 80 with "Foo" in the "Host:" Header
> to be forwarded to a Tomcat instance on the same machine on port 8080
>
> I want all other incoming requests on port 80 to be handled by Apache
> in the regular manner.
>
> Is there any way to configure Apache to do the forwarding?
>
> Thank you,
>
> David


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com