Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with first web server

Status
Not open for further replies.

bluepixie

Programmer
Jul 31, 2003
34
US
Hi,
I am running Tomcat on my pc and I can't seem to view my web page when I try my local ip (but I can view it from localhost in the browser). My friends haven't been able to view it with my ip or domain from their locations outside the network. I have my files (just jsp and html to start) in my root folder (C:\Tomcat_4_1\webapps\ROOT). I have opened up port 80 on my linksys to point to my local static ip. My DSL company alows port 80 traffic and I have a static routable ip through them. DNS is fine. I have zone alarm, will disable it temporarily but hope to have it allow web traffic too. What else do I need to do or am I doing something wrong?
Thanks!


 
Exactly how are you trying to access the server from within your network? Specifically, what IP address are you attempting?

If you attempt to use the address assigned to your DSL connection from within your network, it won't work. The chances are that your router is only applying the NAT rules for connections that come from outside your network.

Have you tried connecting using the non-routeable address on your server?

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Yes, I tried my local ip and my friend from outside the network has tried my "global" ip and my registered domain name.
 
Try to bind apache to both your local ip and port:

Listen 192.168.0.10:80

It sounds like apache is only listening on the loopback device 127.0.0.1 (localhost).
 
Thanks,
But I am not sure where or how to bind my ip to the port. Honestly, there are soooo many config files, I am confused where to put any config info. I am pretty sure that I don't have to mess around with any of the classes though. ?
: )
Thanks!
 
I'm sorry. Apache uses the directive called "Listen" to bind to an ip, port or both. If you open httpd.conf, you should see samples of that directive. It most cases they will have a "#" (pound sign). in front of it. That means that that line is a comment. You can either add another line or uncomment and edit one that is already there. Some older versions used to use the directives "port" and "bind" to do this but they are no longer used. There is one more thing that can cause this problem and that is the ServerName directive. If it is still set to localhost, then that could 'splain a lot. :) You MUST have at least this directive:

ServerName yourdomain.com

This one is also a good one:

ServerAlias
All your other network settings seem to be correct according to your original post.
 
Hi, I don't actually have a https.conf file at all. I did find a server.conf file in the C:\Tomcat_4_1\conf folder. I modified localhost in a few places But to no avail. I must be missing some files somehow. I can paste in the server.conf file if needed to the forum but I refrained doing it now because it's pretty long. Also, I don't think that the tomcat server is shutting down correctly either with the batch file that shuts it down. It still remains under processes and won't give me permission to end the process. Do I need to stop and restart the service everytime I make config. or webpage changes? I haven't used a db yet so that's not an issue...
thanks
 
Yes, you need to restart apache any time you make changes to the config file. As you can see by my not knowing the name of your config file, that I'm not too keen on tomcat. I'll go to apache.org and take a peek at the docs and see if I can learn something. It may have to wait until after the Rams game though. :)

 
thanks, I got it to work. I found the correct file (server.xml) and changed all 8080's to 80.
thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top