I know this sounds like an Apache/Tomcat question, however, the solution may be related to the Linux configuration, so I would like to post it here to get any feedback (I have also posted this question on the Apache/Tomcat forum. I hope this is not a no-no, but I checked the FAQ and didn't see anything regarding posting the same question on two separate boards):
I have single server running Red Hat 9 with j2sdk1.4.2_04, httpd-2.0.49 and jakarta-tomcat-4.1.30.
Java is working (I compiled a
test servlet with no errors); Apache is working (I set up a default web page and I can view it through the browser on the server by typing
http://localhost); Tomcat is working (I can view my test servlet through the browser on the server by typing
http://localhost:8080/mytest/hello). I have a domain name registered (mysite.com) and have configured the IP address to point to my Red Hat server. I have had friends test access to the server through the internet by typing
www.mysite.com, and they are able to see my default web page. So far so good. What I'm attempting to do now is set up the Tomcat content so that it also can be accessed through the internet (ie.
www.mysite.com:8080/mytest/hello). This is where I'm stuck. I don't know how to configure the server to allow internet access to the Tomcat content.
When I set up the server, I entered the hostname as darktower and configured the IP information. I did not configure anything regarding my domain (mysite.com). The following is what my /etc/host file contains:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 darktower localhost.localdomain localhost
When I start Apache, I get the following message:
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Can someone please tell me what I have to configure to serve remote requests from the internet to Tomcat? (ie.
www.mysite.com:8080/mytest/hello) Thanking you in advance for any help and feedback. David Perry.
[ June 16, 2004: Message edited by: David Perry ]