Mise en ligne symfony 6 bloqué sur index.php
BOnjour,
J'ai récemment essayer symfony 6 et mis en ligne mon appli, et lors de la mise en ligne, la page m'affiche index.php
voici mon index.php
Code:
1 2 3 4 5 6 7 8 9
| <?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
}; |
et voici ma config apache
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <VirtualHost *:80>
ServerName monsite.fr
ServerAlias www.monsite.fr
DirectoryIndex index.php
DocumentRoot "/var/www/monsite/public"
<Directory /var/www/monsite/public>
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]
</IfModule>
</Directory>
<Directory /var/www/monsite/public/bundles>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
ErrorLog /var/log/apache2/monsite.fr.log
CustomLog /var/log/apache2/monsite.fr.log combined
</VirtualHost> |
J'aimerai savoir pourquoi en ligne ça m'affiche index.php alors qu'en local ça marche bien?