installation – I have an error message if I disable htaccess files on Drupal 8

I have a LAMP server for my Drupal 8 site.

I want to disable htaccess files to have a better server.

I have not changed anything in my htaccess file, it is the default configuration.

I followed the following tutorial:

https://www.vincentliefooghe.net/content/virtualhost-apache-pour-drupal

But now, when I load a page from my site, I have a blank page with the following message:

handle ($ request); $ reply-> send (); $ kernel-> terminate ($ request, $ response);

My server /etc/apache2/sites-available/www-domaine-com-le-ssl.conf :


   
      
      
      
      ServerAdmin contact@domain.com
ServerName domain.com
ServerAlias ​​www.domain.com
Protocols h2 http / 1.1
DocumentRoot / var / www / www-domain-com / web /

      
         Options FollowSymLinks MultiViews
AllowOverride None
Require all granted

Include /var/www/www-domain-com/web/.htaccess
Include /var/www/www-domain-com/web/sites/default/files/.htaccess
      

      
         
         
         
         SetHandler "proxy: unix: /var/run/php/php7.2-fpm.sock | fcgi: // localhost /"
      

      
      

      

      

      

      ErrorLog $ {APACHE_LOG_DIR} /error.log
CustomLog $ {APACHE_LOG_DIR} /access.log combined

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem

Header still defined Strict-Transport-Security "max-age = 15768000; includeSubDomains; preload"
Header Always Set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode = block"
Header still set X-Frame-Options "SAMEORIGIN"
Header always set X-Download-Options "noopen"
The header always sets the rules X-Permitted-Cross-Domain-Policies "none"
The header always defines Content-Security-Policy "default-src https: data: wss:" unsafe-inline "," unsafe-eval ", base-uri" self ";"
Header edit Set-Cookie ^ (. *) $ $ 1; HttpOnly; Secure