From ff3a594325e29c00b95519ef2f422c3749e2531f Mon Sep 17 00:00:00 2001 From: Ilya Bakhlin Lebedev Date: Sun, 25 May 2025 12:11:13 +0200 Subject: [PATCH] Updating the web_server_configuration.rst File In the documentation, it's being said that Symfony requires the `symfony/apache-pack`, which adds a `.htaccess` file to the `public/` directory. However, it's nowhere specified to change the `AllowOverride` setting from `None` to `All`. --- setup/web_server_configuration.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/web_server_configuration.rst b/setup/web_server_configuration.rst index fdedfc81794..27bcc67aab0 100644 --- a/setup/web_server_configuration.rst +++ b/setup/web_server_configuration.rst @@ -195,7 +195,8 @@ directive to pass requests for PHP files to PHP FPM: If you are doing some quick tests with Apache, you can also run ``composer require symfony/apache-pack``. This package creates an ``.htaccess`` file in the ``public/`` directory with the necessary rewrite rules needed to serve - the Symfony application. However, in production, it's recommended to move these + the Symfony application. Don't forget to change the Apache's ``AllowOverride None`` setting to + ``AllowOverride All``. However, in production, it's recommended to move these rules to the main Apache configuration file (as shown above) to improve performance. Caddy