Wednesday, February 29, 2012

How to make web server accessible to internet?

I have a server connected to my router. It's running ubuntu server 11.10 and I've already installed apache and uploaded my website files. I can access it's contents from other machines on my network by typing it's IP address however I want to make it accessible to the internet. I have a dynamic IP address which is making me a little unsure about what to do. If you need more info just askHow to make web server accessible to internet?
This question looks familiar. Seems I answered one just like this recently.



First you need to subscribe to a dynamic DNS service like dyndns. Your router should have settings for a dynamic DNS. If it doesn't, the service you choose should have an application that you can run on the server. It will ping the dynamic DNS service at certain intervals to update its WAN address.



Then make sure, in the router or firewall, you port forward port 80 and 443 for incoming traffic to the server (the private IP address of the server).How to make web server accessible to internet?
What's the brand name of your router? Anyway that aside, I would suggest you get a static public IP address from your ISP and that should be in a couple of minutes and have that configured on your router.

Now, since apache listens of port 80 by default, set your router to forward all port 80 requests (http) to the IP address of your ubuntu server. That's basically all you need to do.

A point of caution though; you might want to make sure that your ubuntu server is very secure as it would act as an entry point into your network in case of any attack.How to make web server accessible to internet?
First of let me just refeer you to http://www.GeeksLog.org. Read entry #3 its about Dynamic ip's. Also you need to open these ports in your router: 22 and 80

No comments:

Post a Comment