You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Stringer <be...@burbong.com> on 2009/03/01 11:18:35 UTC

Re: not using the port number in the address???

Also, if you have an existing app listening on port 80, and you only
have one IP address to use, you can use Apache httpd name-based virtual
hosts to allow two entirely different apps to both be served from the
same IP:port combination.

For each virtual host, either use mod_jk, or the proxying that Anurag
describes below.

Details for configuring virtual hosts in httpd (v2.2) are here:

http://httpd.apache.org/docs/2.2/vhosts/

Cheers, Ben

On Wed, 2009-02-25 at 20:13 +0000, Anurag Kapur wrote:
> You can use Apache HTTP server and use mod_proxy_http or mod_proxy_ajp
> modules to forward all requests on port 80 on apache to port 8080 on tomcat.
> 
> Specifically use the ProxyPass directive to achieve what you want. Example:
> 
> ProxyPass    /       http://localhost:8080/your-app/
> 
> The above directive would forward all requests on the root context on port
> 80 to be proxied to your-app under tomcat on port 8080.
> 
> Read about it in detail here:
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
> 
> Cheers
> Anurag
> 
> ------------------------------------------------------------------
> Anurag Kapur
> Associate - Technology,
> Sapient Corporation India.
> 
> http://www.linkedin.com/in/anuragkapur
> ------------------------------------------------------------------
> 
> 
> On Wed, Feb 25, 2009 at 2:10 PM, nicumarius <ni...@yahoo.com> wrote:
> 
> >
> > what should I do to not use port number when writting the address of a page
> > on the Apache server?
> > --
> > View this message in context:
> > http://www.nabble.com/not-using-the-port-number-in-the-address----tp22203518p22203518.html
> > Sent from the Tomcat - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org