| 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
|
|
|
|