0

I'm using an OVH web server, I went to the ftp browser and did add all my files into www. I was using Drupal 8 in local.

When I want to go to my website, I've this error:

The provided host name is not valid for this server.

7
  • Not really, since I've this on settings.php: $settings['trusted_host_patterns'] = array('^miage-groupe9-webdesign.fr'); and my website is miage-groupe9-webdesign.fr
    – IsmaElzem
    May 31, 2020 at 20:03
  • Check drupal.stackexchange.com/q/145286/15055 you need to pay attention to the punctuation.
    – leymannx
    May 31, 2020 at 20:10
  • Even with $settings['trusted_host_patterns'] = array( '^miage-groupe9-webdesign\.fr$' ); it does not work. Should I put \ before the - ?
    – IsmaElzem
    May 31, 2020 at 20:12
  • So there's no www or other subdomain in front? And you flushed cache of course?
    – leymannx
    May 31, 2020 at 20:18
  • Yes I did flush the cache. And there is http so I dit change and there is still the error $settings['trusted_host_patterns'] = array('^http://miage-groupe9-webdesign\.fr/');
    – IsmaElzem
    May 31, 2020 at 20:24

0

Browse other questions tagged or ask your own question.