your config looks copy right off from Ruby on Rails Blog / What is Ruby on Rails for? , seems fine.
try "server_name joehost.com www.joehost.com"
there's also a nginx config generator "gem install nginx_config_generator"
below is mine, upstream groups { ip_hash; server localhost:3000; server localhost:3001; } server { listen 80; server_name groups.wuyasea.com;
access_log /u/apps/groups/current/log/access_log main; error_log /u/apps/groups/current/log/error_log info;
root /u/apps/groups/current/public;
location / { # needed to forward user's IP address to rails proxy_set_header X-Real-IP $remote_addr;
# needed for HTTPS proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; proxy_max_temp_file_size 0;
if (!-f $request_filename) { proxy_pass http://groups; break; } } }