Update nginx.conf.erb

Fixes the issue #2 with subdomains
Merge pull request #3 from onnimonni/patch-1

Update nginx.conf.erb