This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Configuring Apache 2 & Tomcat 5.0.28 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Apache 2 & Tomcat 5.0.28" Watch "Configuring Apache 2 & Tomcat 5.0.28" New topic

Configuring Apache 2 & Tomcat 5.0.28

Roel De Nijs

Joined: Jul 19, 2004
Posts: 6373

I want to try to configure Tomcat with Apache on a WinXP platform so i did following steps:
- i installed JDK1.5
- i installed Tomcat 5.0.28 (port 8080) (directory: C:\Program Files\Apache Software Foundation\Tomcat 5.0)
- i tested the working of Tomcat via http://localhost:8080/ (it worked)
- i installed Apache 2 (port 80) (directory: C:\Program Files\Apache Group\Apache2)
- i tested the working of Tomcat via http://localhost/ (it worked)
- i downloaded JK2 and placed the under %APACHE2_HOME%\modules
- i added to the httpd.conf in the direcory %APACHE2_HOME%\conf
- i made a file and placed it in the direcory %APACHE2_HOME%\conf
content of this file:

- i started the tomcat and then the apache
- i tried following url: http://localhost/struts-examples and i got the webpage, so conclusion: tomcat and apache succesfully configured (or not?)

But now i want to access this struts-app from another pc as mine. So what i have to do? I do have a router and i enabled a virtual host on port 80 on the LAN ip adress of my pc

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
subject: Configuring Apache 2 & Tomcat 5.0.28