Here goes...
'locally' means from the same machine that apache and tomcat are located on?
>>>Yes. I have Windows 2000 Server, Apache 2 and Tomcat 4 all running on the same machine.
when you browse to
http://localhost/ you get the "you have successfully set up Apache" page?
>>>Yes. From the server machine, I type
http://localhost and see the default web page that I have set up (which resides in c:\apache\apache2\htdocs).
you browse to
http://localhost/examples/servlets/index.html and get the static page located in $CATALINA_HOME/examples/servlets/index.html
>>>Yes. From the server machine, I type
http://localhost/examples/servlets/index.html and see the static
HTML Tomcat Welcome page (which resides in c:\tomcat\tomcat-4.1\webapps\examples\servlets).
then 'remotely'... you mean from another computer on the same network, or from right outside, and the request comes in from the big 'internet' cloud?
>>>From another computer on the same network. From this 'other' machine, I type
www.mysite.com and get the default web page I have set up. Next, I type
www.mysite.com/examples/servlets/index.html and at this point, I cannot see the static HTML Tomcat Welcome page. The browser gives me a message saying the site cannot be found.
What does your httpd.conf and server.xml files look like? (not the whole things, just the appropriate pieces)
>>>I'm not sure what's appropriate, but here's a sample:
(httpd.conf)
### Section 1: Global Environment
.
.
.
#Added 06/04/2004 DAP
LoadModule jk_module modules/mod_jk.dll
### Section 3: Virtual Hosts
.
.
.
#<VirtualHost *:80>
# ServerAdmin
[email protected] # DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
(server.xml)
#Added 06/04/2004 DAP
Include c:/tomcat/tomcat-4.1/conf/auto/mod_jk.conf
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">
#Added 06/04/2004 DAP
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false"
modJk="c:/apache/Apache2/modules/mod_jk.dll" />
What exact error message do you get? ('not found' means what?). Is there anything in the apache access/error logs ?
>>>This one's a problem at the moment; I'm formatting that server at the moment, so I can't get the logs as they no longer exist.
When I get it set up again, I'll mimic the behaviour to generate the logs.
p.s. -> you so far haven't hit the jk connector with either of these requests (neither one calls for dynamic java content.)
>>>I thought the jk connector was responsible for passing requests from Apache to Tomcat through port 80 (eliminating the need to include the Tomcat port designation in the URL
http://localhost:8080/examples/servlets/index.html)!?!? >>>I really appreciate your getting back to me and for your help. I just graduated and I learned the programming end of this stuff in one of my classes, but it was all done using the
http://localhost configuration. We didn't learn how to set up a live (production) environment and when I asked how to do this, my prof told me to look it up on the web, so here I am. 1000 thanks for you help. David.