Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

jonsaw's Profile

GitHub User: jonsaw

Comments by


Hi jDeppen,

I moved

listen 80 default deferred;

to /etc/nginx/nginx.conf (if your setup is similar to Ryan's)

# ...
http {
  # ... rest of code removed ..
  server {
    listen 80 default deferred;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

Good idea to backup nginx.conf before changing it. Run

cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf-20120608

I hope this helps.

*remember to remove the "listen 80" line in each nginx.conf file in each app.