I'm trying to migrate a drupal website from a server into my localhost but I trigger the error
The provided host name is not valid for this server.
I've seen I need to add the trusted host pattern, but looks like this is not working I still get the error
My server is run on port 9000
sudo php -S 127.0.0.1:9000
My trusted hosts, and I've no Vhost
$settings['trusted_host_patterns'] = array(
'^serverStuffWeDontMind$',
'^localhost\:9000$',
);
^127\.0\.0\.1$
or^127\.0\.0\.1\:9000$
to this array?! – leymannx Nov 20 '19 at 10:03^127\.0\.0\.1\:9000$
but I still get the error – Minirock Nov 20 '19 at 10:05^127\.0\.0\.1$
and just^localhost$
? And what happens when you completely remove this setting? – leymannx Nov 20 '19 at 10:06