Question

Hosting my personal website

I registered a domain through Github’s Student Education Program and redirected the Nameservers to my DO droplet as given in a tutorial. I pinged server and I am getting a response. I also installed Apache 2 and I have it running when I try “http://localhost/” in my browser. However, if I put the IP address in a web browser, it shows “The Webpage is not available.” Should it not show “It Works!” when I put the IP address too? Please help.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi,

Localhost usualy refers to the local machine you are on. Typing http://localhost on my computer will try to reach my computer, not my droplet.

Yes, a http call to your droplet’s ip should definately bring you Apache generic ‘hurray you golden member’ page… That’s IF Apache is installed and running.

To properly answer your question/assess your problem, we would need more precise informations.

http://localhost is, to me, MY computer. Any browser that clicks such a link will try, in theory, to reach itself/the machine it is installed on.

Providing the way you set up your dns nameservers would be a great start as oposed to ‘done something from A tutorial’.

Remember, nameservers can take up to 48 hours to propagate from your domain registrar to the world

This comment has been deleted