When I creates a sub-site (for Drupal 8) with aegir and look at the new sub-site I get the error ”The provided host name is not valid for this server”.
Example: I have a site called www.example.com and create a new sub-site www.example.com/internal. Then I see the error when I visit the URL www.example.com/internal.
This error message is coming from a feature that was added to Drupal 8 to protect against HTTP Host header attacks (https://www.drupal.org/node/1992030). The problem is that the trusted hosts thats is generated by Provision in provision_drupal_settings_8.tpl.php, when you have a sub-site, is not a valid host name.
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-8-sub-sites-gets-error-message-2979542-1.patch | 660 bytes | AndKar |
Comments
Comment #2
AndKar CreditAttribution: AndKar commentedHere is a patch that solvs the problem.
Comment #3
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedLooks ok at first glance.
Comment #4
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedComment #6
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedcommitted, thanks.