Question

How to set up nginx in ubuntu droplet

  • Posted May 26, 2014

Hi,

I’ve set up a ubuntu 14.04 x64 droplet and installed dokku in it following this: https://www.digitalocean.com/community/questions/databases-work-on-ubuntu-14-04-image-if-dokku-is-installed-manually-but-not-if-using-the-dokku-image

Now, when I type my ip in browser (still haven’t pushed my repo) I this message is shown in browser:

Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.

Note that this is my very first time setting up a server and I’m 100% noob.

What do I need to do next?

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.

I get that message when I restart the droplet.

The reason being - nginx comes up before lighttpd. (If you know how to change the order of what service get’s started first - drop me a line. tnx)

Trying to start lighttpd fails: can't bind to port: 80 Address already in use

Solution:

 service nginx stop
service lighttpd start
service nginx start

Hi Sascuash, <br> <br>The real question is what do you want to do? There are many different ways to do things. You have full root access and can install whatever you want. So really the options are endless. It’s hard to give a concrete answer without knowing what your end goal is. For instance, are you trying to host a static web site or a Rails app? The answer for what to do next will be different depending on that…

Someone asked this question on Hacker news today. Here are the links copied and pasted from there. This may help: <br> <br> <br> <br>http://blog.martinfjordvald.com/2010/07/nginx-primer/ <br> <br>http://nginx.org/en/docs/beginners_guide.html <br> <br>https://github.com/h5bp/server-configs-nginx