I am using a linksys router,and I would like to use the Apache.What are the basic things to be done here with regards with the Apache.Any post will be appreciated.Thanks.
You need to forward all http (port 80) traffic to the ip of the host running apache. If you plan to use SSL, you will also need to forward port 443. If you are using dhcp for your local net, give the server a static ip. Adjust the range of available ip addresses so it doesn't include the server's ip. That should just about do it.
No - apache doesn't need to see the outside world. The outside would connects to your router then your router forwards http requests to the lan ip you assigned to the server. The router is the only one with 2 ip addresses. One is your public ip and the other is your lan ip. If any other machine on your net needs to connect to the outside world, they would use your router's lan ip as the gateway. And being the gateway, you would use that ip for dns also.
And for those who are interested i'll try and explain a little about the typical router-->apache situation.
ok, a router has two "interfaces" or connections. One connection is to the internet via whichever means available i.e. DSL/cable. The other connection is to your network usually through a "hub" (a box with network cables connected to all the different PC's and the router).
All the router is really, is a one way cable because it lets you make connections out to websites etc. But it doesn't allow people to make a connection the other way, firstly because there is probably more than 1 computer the router wouldn't know which computer to send the visitor to.
So you have to make it know, this is called port mapping. all that happens is that you go into the routers administration and find a section that mentions port mapping and type the ports in that you would like to map, in the case that you want to run a webserver on one of your computers that has the IP address 192.168.0.2 you would tell the router to do a port map to 192.168.0.2 on port 80, therefore allowing visitors to connect to the webserver on 192.168.0.2.
If you need to test the webserver then you can just find out the IP address of the router and type that into your browser and if you have set the apache software up and the service is running then you should see your own pages or the default apache page.
Please feel free to contact me about any domain name, web server, mail server etc. problems you have at webmaster@isgeeky.com.
Hello Mark,
Thanks for the reply and the offer. I know that the offer you are giving me is a big help.I really would like setup my Site using the Apache but the thing is I don't think I have enough time for now.Is it possible for you to provide me a step by step procedure on how to set this up behind a firewall or better yet a documentation of instructions for this one?I am really hoping you could me on this.
If you plan on only running Apache on this machine, follow RhythmAce's directions above.
If you plan on making this machine available for mail, ftp etc then check to see what the LAN IP is for the machine that Apache is running on. Open your router interface and look for a tab labelled "DMZ host". Enter the IP you just got into the box on this tab.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.