Loading...


Related Products


Date Published: February 6, 2025

Troubleshooting "The provided host name is not valid for this server" error message

Issue

For environments that are on the Acquia Cloud Platform infrastructure, not Cloud Classic infrastructure, when accessing the application via certain domains, pages may load with the message:

The provided host name is not valid for this server

 

Cause

The trusted hosts for the application was not updated after adding a new domain in the Domains tab of the Acquia Cloud UI. By default, the trusted host pattern variable, $settings['trusted_host_patterns'], is populated with your existing domains.

This error can occur if you have set trusted host patterns manually in files such as, settings.php or sites.php.This overrides the Acquia default settings. 


For environments on the Acquia Cloud Platform infrastructure, there has been a known issue when adding multiple domains to soon together. This issue can cause pods in the cluster to enter a stuck state where the configurations are not updates and the pods needs manual intervention to be rotated.

 

Resolution

If trusted host patterns have been set, either add the domain to the trusted host pattern or switch back to the default so Acquia manages the trusted hosts. 

If the environment is on the Acquia Cloud Platform infrastructure, and you are not using custom trusted hosts, open a ticket with Support to confirm pod rotation. To avoid the issue in the future, wait several minutes between adding each new domain.

 

The issue on the platform is now resolved. 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation