How do I configure nginx/passenger to load 5 sub domain on single server

I’m trying to setup an application on AWS server. I’m using nginx/passenger for running the rails application. I tried using proxy_pass option in nginx.conf, but to no avail. Can anyone help me set this up?


Can you post your nginx.conf file? I manage several nginx boxes and have one server with passenger and nginx on it. We use subdomains on all of them.