httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <>
Subject Re: [users@httpd] Tomcat + apache = same port
Date Wed, 06 Dec 2006 20:45:38 GMT

On Dec 6, 2006, at 9:15 AM, Ismael Milach da Silveira wrote:

> Guys, I'm having a problem trying to run both apache and tomcat at  
> the same port.
> I'm able to run both of them when using different ports, but at the  
> same port apache simply won't run at all.

You cannot run more than one server on the same IP Address + Port  
combination. The Linux operating system (or any other operating  
system) simply won't let you do that. Possible solutions:

1) Make Apache and Tomcat bind to different IP addresses. Then you
    can run them on the same port.
2) Run apache on the port, have it proxy requests to Tomcat using  
    mod_proxy_ajp or mod_jk. That way you present a unified site to  
your users,
    and have Apache decide how each request is served. It is very  
good at that.



Open Source Software Consultant
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

View raw message