Just a quick guess, but those are virtual hosts, and they need to have
two separate servernames. (right now they’re both rails, and they’re
both listening on the same port and address, so they’ll conflict.
You’ll also need to add the servername to your hosts file.