How to set up nginx in ubuntu droplet


I’ve set up a ubuntu 14.04 x64 droplet and installed dokku in it following this:

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 Commercial support is available at 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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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


 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> <br> <br> <br> <br>