Hosting my personal website

May 13, 2016 616 views
Apache FAQ Ubuntu

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.

2 Answers


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

  • Hey, thanks for the prompt reply.

    The tutorial I was talking about is:

    I did a very** stupid** mistake. Instead of installing the LAMP stack on my server, I was installing it on my PC's terminal, hence the complications. Once I installed it on the server, everything went fine.

    For anybody else reading this in the future, then using a FTP program, I uploaded the required HTML and CSS files to my server. In my case, it was in /var/www/.

    by Etel Sverdlov
    This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Ubuntu.
    • I'm glad you got your things sorted out!

      I would tend to call it in such way too but it's not stupid... it's a very common mistake that happened or will happen to everyone at least once - they just won't admit it!

      Happend to me not too long ago, different scenario but very very similar lack of attention; I was working on 3 setups at the same time, each mounted locally for convenience using sshfs. 3 'nginx.conf' that each needed something a little different... ended up not being a huge problem cuz i could ctrl^z (with atom or geany) but... could very well have been a bit of a maze sorting what's whotothewhereandhow?!!"$/

      I'm pretty sure sudo has prevented alot of potentially very costly similar mistakes in the past, too!

Have another answer? Share your knowledge.