I have a backdrop site running from webroot (/public_html).  Based on examples provided in the settings.php file, I modified the trusted host settings as follows (hoping to allow only base-url and subdomains):

$settings['trusted_host_patterns'] = array(

When these settings are enabled, I only get a blank screen with no error messages.  I have not made any modifications to the .htaccess file that was part of the backdrop installation.  I have no idea on how to fix this, thanks for any help.


If you comment out the trusted host settings code and access the site, what happens?

Thanks for your response.  The site works when I comment out the trusted settings code, as this is the original code in settings.php.

I did a code change by simply putting settings all in the same line and removed the @code/@endcode block.

$settings['trusted_host_patterns'] = array('^mysite\.ca$','^.+\.mysite\.ca$');

and the setting works.