From 8852f76fbf91fae07e633a2c430b542beb04ae15 Mon Sep 17 00:00:00 2001 From: Florian Bastien Date: Fri, 10 Jan 2020 10:39:49 +0100 Subject: [PATCH] [Server Configuration] Clarified performance tip about symfony/apache-pack --- setup/web_server_configuration.rst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/setup/web_server_configuration.rst b/setup/web_server_configuration.rst index bda1c343a9d..a0bc58f82ec 100644 --- a/setup/web_server_configuration.rst +++ b/setup/web_server_configuration.rst @@ -48,8 +48,19 @@ the rewrite rules. .. tip:: A performance improvement can be achieved by moving the rewrite rules from the ``.htaccess`` - file into the VirtualHost block of your Apache configuration and then changing - ``AllowOverride All`` to ``AllowOverride None`` in your VirtualHost block. + file into the VirtualHost block of your Apache configuration (inside the ``public/`` Directory block) + and then changing ``AllowOverride All`` to ``AllowOverride None`` in your VirtualHost block. + + .. code-block:: apache + + + # ... + DocumentRoot /var/www/project/public + + AllowOverride None + # Move .htaccess contents here + + Apache with mod_php/PHP-CGI ---------------------------