I’m facing an issue with my Symfony installation and could really use your insights.
I have a Symfony application with two components: the frontend that utilizes Apostrophe CMS and the backend that includes modules from the Doctrine admin generator.
While everything functions smoothly in my local environment, once I move to production, all frontend pages following the homepage trigger 404 errors. Oddly, the backend component operates without any problems.
To give you context, here’s my current Apache virtual host setup:
<VirtualHost *:80>
DocumentRoot "/var/www/myproject/web"
DirectoryIndex index.php
<Directory "/var/www/myproject/web">
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Allow from All
</Directory>
ErrorLog /var/log/apache2/error.log
Alias /sf /var/www/myproject/lib/vendor/symfony/data/web/sf
<Directory "/var/www/myproject/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Given that the backend works properly, I’m uncertain whether this issue stems from an Apache configuration misstep or if it’s related to something else entirely. Has anyone else experienced similar issues?