I posted this question a few days back and haven't received any response. I've searched the postings here and on Google and can't find any information or help. Maybe I'm not wording my question correctly. Could someone take a look at my question and tell me if there's a better way to phrase it so I might find some information? Thanks again. David.
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?
What does your httpd.conf and server.xml files look like? (not the whole things, just the appropriate pieces)
What exact error message do you get? ('not found' means what?). Is there anything in the apache access/error logs ?
p.s. -> you so far haven't hit the jk connector with either of these requests (neither one calls for dynamic java content.) [ June 08, 2004: Message edited by: Mike Curwen ]
Joined: Dec 12, 2003
'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).
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
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.
1. The httpd.conf section you quoted is pretty much all commented out (#), so that particular virtual host is non-existent. Besides that, it contains no jkmount directives. Perhaps that's explained by #2,
2. I see you're attempting to use the auto/mod_jk.conf. I'm of a mixed feeling about this. I've never used it myself, but I understand the temptation is strong to do so. I think the 'speed' you gain from it is offset by the inflexibility. Also, if that line is truly in server.xml , then I'm surprised if Tomcat is even starting. This line belongs in httpd.conf.
3. The jk connector is the piece responsible for forwarding requests from Apache to Tomcat, but only those requests that it a) is configured to forward and hopefully b) makes sense to forward. Requesting an HTML page, and having it forwarded to Tomcat for serving, would break the b) requirement, at least.
Have you checked out http://www.raibledesigns.com/tomcat/index.html ? While this talks about load-balancing two tomcats, the essential configuration for just a single tomcat would remain unchanged. I believe these instructions are still valid for TC 4.1.30
There is also this: http://galatea.com/flashguides/apache-tomcat-4-win32.xml Be careful not to mix the instructions for using that auto-generated conf file, with the instructions for "do it yourself" (they are generally incompatible). [ June 09, 2004: Message edited by: Mike Curwen ]
Joined: Dec 12, 2003
Thanks for your help. I've not been able to find much information on configuring this Windows, so I'm going to give it a shot with Red Hat 9.