Greetings,
I started my first test using tomcat as a container for servlets / java
server pages.
Any request to the special server port (8080) is fine. But I want to use
the standard http port. The user should be able to access some pure http
pages as well as servlets or java server pages - without any need to
change the port.
How to do this?
Michael
WeeMadArthur@gmail.com - 14 Apr 2006 12:08 GMT
Look for a line "port=8080" in conf/server.xml, and change it to 80.
Note that, on Linux, you need root permissions to use port 80.
IchBin - 14 Apr 2006 19:35 GMT
> Greetings,
>
[quoted text clipped - 8 lines]
>
> Michael
Not sure if this helps but I front end Tomcat with Apache2. Apache2 can
handle all 80 port and forward 8080 to tomcat.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Michael Mueller - 15 Apr 2006 18:08 GMT
IchBin schrieb:
>> Greetings,
>>
[quoted text clipped - 18 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)
ya, that realy what I want to do - no single installation of tomcat.
I try to figure this out
Thanks
Michael
David Segall - 15 Apr 2006 20:06 GMT
>IchBin schrieb:
>>> Greetings,
[quoted text clipped - 23 lines]
>Thanks
>Michael
This is the way to go if your server has plenty of memory and if you
receive a lot of traffic most of which does not require a JSP server.
Otherwise, Tomcat is a capable HTTP server and you will simplify your
life and reduce the load on your server computer if you do not have to
run two different servers. I suggest you start with the simple change
I have suggested in a separate post and upgrade to Apache plus Tomcat
when you need to. By that time you may find that you will better
served (pun intended) by a certified J2EE server like JBoss, GlassFish
or Geronimo.
IchBin - 16 Apr 2006 07:41 GMT
> IchBin schrieb:
>>> Greetings,
[quoted text clipped - 23 lines]
> Thanks
> Michael
Well, if you decide to do it, I have information on how to have both of
them to talk to each other from install to testing them on my website at:
http://weconsultants.servebeer.com/JHackerAppManager/Portal?xpc=1$@90$@1$@1&fold
er=20050711205318410
Things I did to get it to work. That is, the site you will be actually
looking at.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
alexandre_paterson@yahoo.fr - 14 Apr 2006 21:14 GMT
...
> Any request to the special server port (8080) is fine. But I want to use
> the standard http port. The user should be able to access some pure http
> pages as well as servlets or java server pages - without any need to
> change the port.
>
> How to do this?
Hi,
if you're running Tomcat under Linux (and same apply to other Unix*s)
and want to run Tomcat in stand-alone mode (ie without Apache),
the safest way to do this is to configure the stateful firewall
(iptables under Linux) to do DNAT. That means basically adding
a single line that may look like this:
iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT \
--todestination ...:8080
You may want to google for "iptables" and "dnat" to learn more on this.
That way you don't need Apache and you don't need to run Tomcat
as root (both Sun's Java JVM and Tomcat can be installed in userspace
under Linux [which is not the case under Windows]).
HTH,
Alex
David Segall - 15 Apr 2006 04:49 GMT
>Greetings,
>
[quoted text clipped - 8 lines]
>
>Michael
Change the string port="8080" in the server.xml file to port="80".
The server.xml file is in the conf directory where you installed
Tomcat.