Skip to content

Commit f5aa540

Browse files
committed
minor #12922 [Server Configuration] Clarified performance tip about symfony/apache-pack (fbastien)
This PR was submitted for the 4.0 branch but it was squashed and merged into the 4.4 branch instead (closes #12922). Discussion ---------- [Server Configuration] Clarified performance tip about symfony/apache-pack Fixes #12910 Commits ------- 8852f76 [Server Configuration] Clarified performance tip about symfony/apache-pack
2 parents be93a44 + 8852f76 commit f5aa540

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

setup/web_server_configuration.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,19 @@ the rewrite rules.
4848
.. tip::
4949

5050
A performance improvement can be achieved by moving the rewrite rules from the ``.htaccess``
51-
file into the VirtualHost block of your Apache configuration and then changing
52-
``AllowOverride All`` to ``AllowOverride None`` in your VirtualHost block.
51+
file into the VirtualHost block of your Apache configuration (inside the ``public/`` Directory block)
52+
and then changing ``AllowOverride All`` to ``AllowOverride None`` in your VirtualHost block.
53+
54+
.. code-block:: apache
55+
56+
<VirtualHost *:80>
57+
# ...
58+
DocumentRoot /var/www/project/public
59+
<Directory /var/www/project/public>
60+
AllowOverride None
61+
# Move .htaccess contents here
62+
</Directory>
63+
</VirtualHost>
5364
5465
Apache with mod_php/PHP-CGI
5566
---------------------------

0 commit comments

Comments
 (0)