Open sfnelson opened 3 years ago
https://github.com/engineyard/ey-cookbooks-stable-v6/blob/next-release/cookbooks/haproxy/recipes/configure.rb#L45
haproxy_httpchk_host = app.vhosts.first.domain_name.empty? ? nil : app.vhosts.first.domain_name
This line configures HAProxy to use the domain name configured in the app's vhost, but the documentation for Domain Name states:
Domain Name
Enter comma-separated values. Wildcards and regular expressions are allowed.
In practice, this value is a list of space-separated strings intended for the nginx server_name directive, which can include regexes.
I'm not sure how the HAProxy recipe should deal with regex values, but at least it should check for _ and handle multiple values appropriately.
_
This issue has (finally!) been prioritized and the fix will be part of the next release, aimed at happening during the current month.
https://github.com/engineyard/ey-cookbooks-stable-v6/blob/next-release/cookbooks/haproxy/recipes/configure.rb#L45
This line configures HAProxy to use the domain name configured in the app's vhost, but the documentation for
Domain Name
states:In practice, this value is a list of space-separated strings intended for the nginx server_name directive, which can include regexes.
I'm not sure how the HAProxy recipe should deal with regex values, but at least it should check for
_
and handle multiple values appropriately.