Configuration an existed file httpd

  apache, deployment, linux, php, symfony

I am wirtting this message that I need you help about apache httpd.

Before all, I work on Linux RedHat Centos , I had :
*PHP 7.3
*APACHE httpd 2.4
*Symfony 4

I have many names domaines,, ..etc and they all configurate very well.

Let’s focus about project, I have an existed project written by php in, I changed and transformed same project from php to symfony.
So what I did ?

  • I pute environement symfony prod and I did bin/console cache:clear =>it’s ok
  • I modified file (in directory sites-availabes), the only change is the path :

    1. Before path was like: DocumentRoot /var/www/

    2. Now : DocumentRoot /var/www/ and I added also

   <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all

        Require all granted

        <IfModule mod_rewrite.c>
            Options -MultiViews
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ index.php [QSA,L]

Then I saved the file and restart server httpd

So I go to browser web to check the website and I get an empty page and answer is “ERR_EMPTY_RESPONSE”

I searched a whole things, anything, all is okay but it’s very strange that I have empty page.

I hope you understood and I need really understand that problem and I just am new in apache httpd

Best regards.

Source: Symfony Questions