Report this

What is the reason for this report?

Nginx and Unicorn: how are they connected to each other?

Posted on August 8, 2013

I just got VM which had nginx, unicorn and a fresh rails app installed. I looked at the nginx config file, and I do not understand how it connects to unicorn, especially since there doesn’t seem to be any upstream setting (which is what most tutorial’s say you need).

Also there seems to be a line in the default site-enabled config file that has the line:

proxy_pass http://app_server;

I am not sure where is app_server defined. Is this an upstream defined somewhere?

Note: This post has screenshots on how all my current configuration files look like:

https://www.digitalocean.com/community/articles/how-to-1-click-install-ruby-on-rails-on-ubuntu-12-10-with-digitalocean



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!

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.