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]