Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache + Tomcat set-up problem

Status
Not open for further replies.

grimep

Programmer
May 12, 2003
6
GB
Win2K, Apache 2.0.47, Tomcat 4.1.27
Having tried various tutorials I finally found one that worked ..
So I've got Apache and Tomcat running; localhost resolves to Apache's default homepage, while localhost:8080 shows Tomcat's. And when I hit localhost/examples the JSPs and Servlets get dealt with without specifying port 8080.

So it looks like everything is working- Apache and Tomcat, same machine, Tomcat dealing transparently with JSP / Servlets.

However, when I access the machine from the internet, I get a page not found error. However if I go in on port 8080, I get the Tomcat default page.

So for some reason I cant get Apache from the web. The router is set up to port-forward requests on ports 8080 and 80 to the same machine.

Any ideas ?
 
Hello:

Trye the following:

Add to your httpd.conf file this

include /path_tomcat/conf/auto/mod_jk.conf.auto

*the patcvh can be changed using jkConfig in the directive below

Add this to the server.xml file

<ContextManager ...>
....
<ApacheConfig options />
....
<ContextManager >

The options are explained in jakarta docs. With this directive in server.xml the file mod_jk.conf.auto will be generated after starting Tomcat.

After making this you must restart first TOMCAT and then Apache
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top