I need help opening up Apache 2.0.39 to the web.

Oct 19, 2000
17,860
4
81
I've installed http://www.foxserv.net on a seperate comp. I hope to use this as a sort of a play-around kinda thing, to kinda learn the intracasies (sp?) of web servering.

Can anybody give me a basic understanding of how to get it open to the web? How do firewalls mix in with allowing access? I know how to setup files in the www folder (the folder used by foxserv), and I know how to run the service, but that's about it.

Thanks for any tips and know-how you guys can give me.
 

owensdj

Golden Member
Jul 14, 2000
1,711
6
81
I think the only thing you need to do is configure your router to forward port 80(this is the HTTP port) to the private IP address of the computer that's running Apache. You'll want to configure this computer with a static IP address rather than allow it to optain one from the router. This is to make sure it never changes and the forwarding always works.
 
Oct 19, 2000
17,860
4
81
Originally posted by: owensdj
I think the only thing you need to do is configure your router to forward port 80(this is the HTTP port) to the private IP address of the computer that's running Apache. You'll want to configure this computer with a static IP address rather than allow it to optain one from the router. This is to make sure it never changes and the forwarding always works.
Ok, I've forwarded the port, which is 80, to the internal IP of the server comp, which is 198.162.1.101. In the UPnP Forwarding section of my router, it correctly has the port http port 80, and I've enabled it. By default, the TCP protocol is checked, but UDP is not. Should UDP be checked as well?

Also, you say I need to configure the comp with a static IP rather than let it obtain one from the router. How do I do this exactly? If you're suggesting I pay extra to my ISP for a static IP, that's out of the question. If there is something I can modify on my equipment, I'm all ears :D.

Thanks for you help.
 

skyking

Lifer
Nov 21, 2001
22,790
5,950
146
looking at your LAN IP, I would surmise you probably have an SMC router, which is handing out IP's via DHCP. It is beginning with .101, and going up from there.
If you set your server's IP to anything below 100, say 192.168.1.10, for instance, your router will never try to assign that IP to another computer, since it is not in the pool of dynamically assigned IP's.
Go to Network, Right click on connection, select Properties, Tcp/Ip, properties, and un-check "obtain address automatically"
Set your IP to whatever you want below 100, your gateway to 192.168.1.1, netmask to 255.255.255.0.
Put your ISP' DNS servers in for dns.

Forward to your new server IP in your router. Done.
 
Oct 19, 2000
17,860
4
81
I actually got it working late last night. I was getting some additional help on the foxserv.net forums, and got some good advice. But it was ultimately one of my friends who didn't know what he was talking about who helped me.

I was having him try it online from his comp repeatedly after changing stuff. I was about to give up when he started asking questions and stuff, really not knowing what he was asking. After a while, I gave him the ip again with the :80 port at the end. He asked if it was supposed to be a . like the other seperators in the IP, and I said no, and explained the use of a port. Well, he then said, "What if you try another port?" I had thought of it before, but that's all it was, a thought.

I changed the port, and voila, it works! Thanks for the help anyway guys. Much appreciated.