Hi,

you can configure apache to pass all requests containing *.jsp to your tomcat. This setup requires an extra connector, such as jk2.

Tom

Tony Smith wrote:
Or, can I move my tomcat under apache so now port
number is necessary in the address?



--- Tony Smith <[EMAIL PROTECTED]> wrote:


Thank all for response.
I loged on as root and changed server.xml to use
port
80. When I start tomcat, it now compained that "80
is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else? I also tried "telnet localhost 80", I got [EMAIL PROTECTED] telnet localhost 80
 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1).
 Escape character is '^]'.

And it hang on there. I type in GET index.html HTTP/1.1
After a couple minutes, I got a "400 bad request"
from
"Apache/2.0.46". Looks like I have apache running.
How
can I stop the apache server? I am using linux.
We are still in the developing stage and all users
are
internal. Thus, security is not a concern right now.




--- Timo -Blazko- Boewing
<[EMAIL PROTECTED]>
wrote:


On Tue, 2005-06-21 at 18:54 +0200, mario nee

wrote:

in Unix system you must have root permission to

open a port under 1024.

Hello,

While this is right, I would not recommend to run
Tomcat as root. Better
run Tomcat with another port just like the default
8080 and use a
firewall application such as iptables to

internally

forward incoming
requests to port 8080; thus you avoid dangerous
exploits in Tomcat's
webapps.

It can be done w/ something similar to this:

iptables -t nat -A PREROUTING -i eth0 -p tcp

--dport

80 -j REDIRECT
--to-port 8080


--
greetings, | /"\ | \ / ASCII-Ribbon-Campaign
Timo                         |   X     Against

HTML

Mail
| / \




---------------------------------------------------------------------

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]







                
____________________________________________________

Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football

http://football.fantasysports.yahoo.com



---------------------------------------------------------------------

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to