My intent is to have an Apache + JK + Tomcat server that uses apache only to service static web content and and sends all dynamic content to Tomcat (so that it handles all the JSP). I downloaded and installed Apache 2.2, Tomcat 6.0, and J2SE 1.5 (Becuase j2se 1.6 was buggy and giving problems). When initially configuring the server, I included the following lines in the Apache HTTPD.conf file:
LoadModule jk_module modules/mod_jk-1.2.26-httpd-2.2.4.so and in Tomcat I included: <Listener className="org.apache.jk.config.ApacheConfig" modJK="c:/apache/modules/mod_jk-1.2.26-httpd-2.2.4.so" /> and <Listener className="org.apache.jk.config.ApacheConfig" append="true" forwardAll="false" modJK="c:/apache/modules/mod_jk-1.2.26-httpd-2.2.4.so" /> Basing most of the tutorials I have read about setting up this type of servers, I thought this steps were sufficient to enable the server to work in the above descirbed way. It appears, however, that I am missing something... -Carl Alan Chaney wrote: > > The effect you are observing is because you have configured your setup > to have the jsp files in the path of the document root for apache. > Apache knows nothing about jsp files so it is just returning the source > to you. > > You have not specified O/S, JVM or Apache or Tomcat version. > > You might like to read the tomcat documentation before going any further: > > http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html > > would be a good place to start if you intend to use apache + tomcat, > together with > > http://tomcat.apache.org/tomcat-6.0-doc/connectors.html > > if you want to configure your version of tomcat to directly serve port > 80 and not use apache at all. > > A 'tomcat only' installation working with port 80 can easily be > configured in Windows using the control panel (or so I believe as I > don't use Windows myself). For a linux setup there are some additional > complications - see: > > http://commons.apache.org/daemon/index.html > > to avoid running tomcat as root. > > Also you may find looking at archives of this list helpful. > > > If you can't find the answers in the above and generally, > > http://tomcat.apache.org/connectors-doc/index.html > > then maybe you could specify your system more clearly and I'm sure > people will be able to give you more specific help. > > > Alan Chaney > > > > > > > > > > BeasC wrote: >> I can get Tomcat to render JSP content if I try to (for example) access >> the >> JSP installation examples using http://localhost:8080/examples/jsp But >> when >> I try to try http://localhost/examples/jsp I get nothing but the raw html >> code of the page (of a specific example). >> I have an Apache - Tomcat server, and Apache is listening on port 80 >> (Which >> is the default port used when accessing the server using its IP address. >> Tomcat has the following code lines in its server.xml file, that I think >> might serve as reference point to what I'm talking about: >> >> <Server port="8005" shutdown="SHUTDOWN"> >> >> and >> >> <Connector port="8080" protocol="HTTP/1.1" >> connectionTimeout="20000" >> redirectPort="8443" /> >> >> Any help would be greatly appreciated. >> >> -Carl > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tomcat-is-not-rendering-JSP-content-on-Port-80-tp16817685p16824726.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]