This is due to trusted host configuration of the serveur. It can produce when you change the domain name or 'trusted_host_patterns'. To resolve the probleme, add your new domain to the DRUPAL_ROOT/sites/SITE_FOLDER/settings.php (Ex: sites/defaults/settings.php)
Welcome To Drupal 8
Drupal is a CMS (Content Management System) open-source written in PHP. Drupl 8 is the latest version of Drupal successor of Drupal 7 popular for its security, flexibility and scalability, used on the complex high traffic web applications as well as small showcase sites. Drupal 8 is comes with over 200 new features and improvements including native full responsive support, multilingual support, REST Full web service. Drupal 8 was created in PHP using Symfony 2 Framework and TWIG templating system.
This web site is a set of tutorials help to new Drupal 8 developers and persons who want to be a Drupal 8 developer or a webmaster. The level of the tutorials are start from very basic (beginners) and can be very complex (Experts). I hope the site is useful for you and you are welcome to share your knowledge, ideas and experience. Thank you.
To set configuration at the module installation
$site_name = \Drupal::config('system.site')->get('name');
// Set the site name.
\Drupal::configFactory()->getEditable('system.site')->set('name', 'My site')->save();
You can do that using Symfony JsonResponse.
return new \Symfony\Component\HttpFoundation\JsonResponse($array);
Today we released Drupal 8.0.0, the first fully supported release of Drupal 8! This is the biggest update ever to Drupal, our open source content management platform. Here are just a few of the hundreds of improvements in Drupal 8:
As the solution depend on your error, first of all, you must find why drupal crash.
1. First thing is, You must check the serveur error log.
# tail -f /var/log/apache2/error.log