What is your actual goal (other than mapping port 80 to 8080)?

It sounds like you just want to be able to respond to incoming requests on port 
80 - so you don't have to tell users to use ":8080" on their requests - is that 
right?

If that's the case, you have a couple of options:

1) run tomcat on port 80 directly (there are several mechanisms to do this - 
but try Googling "run tomcat on port 80" and you'll find several docs on it - 
here is the first one from that search: http://www.klawitter.de/tomcat80.html, 
and it seems to be plenty useful). NOTE: it's a little trickier than you might 
think, because you usually want to run 'tomcat' as a non-'root' user, and only 
'root' can open a listener on port 80 (on non-Windows systems). 

2) Use a proxy (like you've been doing) - but if you are going to do that, I'd 
recommend using 'AJP' instead of 'http'. It is much faster. The big difference 
is that you have to enable the AJP connector (defaults to port 8009), and in 
your "ProxyPass", you use 'ajp://' instead of 'http://'...

If you are truly just trying to route port 80 to your tomcat, I'd recommend #1 
as your best solution - just run tomcat on port 80. There's less overhead and 
it will perform better. If you want to serve some stuff from tomcat, and some 
from other sources (php, static files, etc.), the proxy may be what you want. 
(Keep in mind, Apache isn't the only proxy out there - so other choices may 
work better for you.)

--
Robin D. Wilson
Director of Web Development
KingsIsle Entertainment, Inc.
CELL: 512-426-3929
DESK: 512-623-5913
www.KingsIsle.com


-----Original Message-----
From: pionier [mailto:pionierp...@interia.pl] 
Sent: Wednesday, January 13, 2010 9:48 AM
To: users@tomcat.apache.org
Subject: Re: tomcat + apache + proxy = very slow response



I found that i cant use ProxyRequests On
it have to be sat to Offf...
but how to map port 80 to 8080 without proxy ? 
how can i solve this problem ?
-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27147115.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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

Reply via email to