Difference between revisions of "drupal error "The provided host name is not valid for this server""
From thelinuxwiki
(Created page with "drupal version: 8 error message(browser): The provided host name is not valid for this server problem description: and apache2 web alias using only the site domain name will ...") |
Latest revision as of 19:06, 12 November 2018
drupal version: 8 error message(browser): The provided host name is not valid for this server
problem description: and apache2 web alias using only the site domain name will not pull up the site. The afore mentioned error is presented in the browser.
solution
$settings['trusted_host_patterns'] = [ '^localhost$', '^www\.mydomain\.com$', '^mydomain\.com$', '^127\.0\.0\.1$',
];