Problem symfony 4 routes and apache with docker Problem symfony 4 routes and apache with docker docker docker

Problem symfony 4 routes and apache with docker


I would like to post how I resolved the problem with the displayed index.php file in the URL.

I just switched on the mod_rewrite option of the Apache and restarted the Apache.

I added the line in the Dockerfile:

RUN a2enmod rewrite && service apache2 restart