Nginx config file problem

I am so close to getting the production server working. I have messed something up and can’t figure it out. With the kegbot-nginx.conf file in the sites-enabled folder, I cannot start nginx. If I change the name of the file from kegbot-nginx.conf to default, I can start nginx. However, I get 502 bad gateway errors on the website. supervisorctl seems to be working. Of course, it could be something completely different.

Thanks in advance for any help.