RailsCasts Pro episodes are now free!

Learn more or hide this

jonsaw's Profile

GitHub User: jonsaw

Comments by

Avatar

Hi jDeppen,

I moved

conf
listen 80 default deferred;

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

conf
# ...
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

bash
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.