wood burning stoves 2.0
The moose likes Tomcat and the fly likes where to put my index.jsp? redhat7.2+apache1.3+tomcat4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "where to put my index.jsp? redhat7.2+apache1.3+tomcat4" Watch "where to put my index.jsp? redhat7.2+apache1.3+tomcat4" New topic

where to put my index.jsp? redhat7.2+apache1.3+tomcat4

Caven Wang
Ranch Hand

Joined: Jul 07, 2001
Posts: 31
I have installed my tomcat4.01 and apapche 1.3 on redhat7.2 , by using webapp.so to connect tomcat and apache.
with http://localhost, I could see tha default page of apache; and I also see tomcat default page via http://localhost:8180 or examples files via http://localhost/examples/.
now, what should I do if I want to see my index.jsp at http://localhost?

apache base docu directory: /var/www/html
tomcat base docu directory: /var/tomcat4/webapps
[ June 03, 2002: Message edited by: Caven Wang ]

@_@ Life is so nice!
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 567
I'm winging it on this one coz I've never done it, but if you currently see your default tomcat page on localhost:8180 but you want to see it on straight localhost, then you need to configure the apache to pass the request along.
On tomcat, your default page should replace the tomcat default page in web-apps/ROOT or wherever you specified in web.xml, and also check the welcome-file list in web.xml (or is it server.xml?)

PS See the other thread here - tomcat with apache
[ June 05, 2002: Message edited by: Adam Hardy ]

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I agree. Here's the link: http://aspose.com/file-tools
subject: where to put my index.jsp? redhat7.2+apache1.3+tomcat4
jQuery in Action, 3rd edition