title: The provided host name is not valid for this server
body: <p>I'm trying to migrate a drupal website from a server into my localhost but I trigger the error</p>
  
  <blockquote>
    <p>The provided host name is not valid for this server.</p>
  </blockquote>
  
  <p>I've seen I need to add the trusted host pattern, but looks like this is not working I still get the error</p>
  
  <p>My server is run on port 9000</p>
  
  <pre><code>sudo php -S 127.0.0.1:9000
  </code></pre>
  
  <p>My trusted hosts, and I've no Vhost</p>
  
  <pre><code>$settings['trusted_host_patterns'] = array(
    '^serverStuffWeDontMind$',
    '^localhost\:9000$',
    '^127\.0\.0\.1\:9000$',
  );
  </code></pre>