using chomp will try to match the regex against aliases that have nothing to do with the domain_suffix. might be better to wrap the whole thing in an if block, like

```
if fqdn.end_with?(Rails.configuration.openshift[:domain_suffix])
  return false if !Rails.configuration.openshift[:allow_alias_in_domain]
  return false if fqdn.chomp(Rails.configuration.openshift[:domain_suffix]) =~ /\A\w+-\w+\.\z/
end
```