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

  • Posted 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:


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.