#if this was done so, on what port will the servlet engine listen to? is it #port 80? or the default 8080 for jsp/servlet request? i asked this because #i've previously installed tomcat (i guess it was 3.2) on my linuxbox and i #still have to explicitly include the ":8080" in the url to test the jsp/ #servlet engine. #
Well, if you can the Tomcat engine to handle all HTTP requests then you can either leave it at 8080 or you can change the port to 80. To do this, open up the server.xml file, look for the <Connector> tag with a <Parameter name="port" value="8080"> tag, and change 8080 to 80. Then restart Tomcat. But if you want Apache to handle HTTP requests and just forward JSP, and Servlet requests to Tomcat, you should dispable the HTTPConnection handler. To do this, just comment out (<!-- -->) the same <Connector> tag I described above. IMHO using Tomcat as webserver too is a bad idea. Tomcat is not as fast as Apache Server in any account. Apache has been tested, and used a lot longer th an Tomcat.. So I normally have Tomcat bound to the localhost IP (127.0.0.1) and HTTP Connector disable. BTW there are two (2) Apache->Tomcat protocols available these days.. They are AJP12 (Apache JServ Protocol 1.2), and AJP13. AJP12 by default uses 8007 while AJP12 uses 8009. If you can, disable AJP12 and use AJP13. AJP13 is a leaner protocol -- it doesn't have the JServ baggage (which makes the AJP name a misnomer ;) ). #right now, i use resin with the ejb (resin-cmp1.0.4 yata) - and i still include #":8080: on the urls. # Well, as with Tomcat, if you want Resin to handle all HTTP requests (also not a good idea) and you want to it to bind to port 80, you can change the port attribute of the <http> tag w/in the <HTTPServer> tag to 80 in the resin.conf file. If you want Apache to handle requests, and just forward JSP, and Servlet requests to Resin, you should install mod_caucho DSO, comment out the <http> tag in resin.conf, then make sure the <srun> tag's port attribute correspond to port set in the Apache config section for mod_caucho. There's a good step-by-step instruction on how to do this at caucho.com HTH jeff -- -- Jeff Gutierrez Mapua Online! http://www.mapua.org http://www.mapua.com http://www.mapua.net Pinoy Ako! May reklamo? _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
