8000 feature #8806 Flex node for Apache (ricknox, javiereguiluz) · symfony/symfony-docs@36b9f9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 36b9f9c

Browse files
committed
feature #8806 Flex node for Apache (ricknox, javiereguiluz)
This PR was submitted for the master branch but it was merged into the 4.0 branch instead (closes #8806). Discussion ---------- Flex node for Apache This is related to #8724. Commits ------- 23c49fa Minor changes 5f9b813 Update article block from pull request feedback. 0bee9a9 Forgot a apostrophe. 4f20edf Improvements on the apache section. 17748d3 Added the Flex node for Apache.
2 parents 684f505 + 23c49fa commit 36b9f9c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

setup/web_server_configuration.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ to use PHP :ref:`with Nginx <web-server-nginx>`.
3131

3232
.. _web-server-apache-mod-php:
3333

34+
Adding Rewrite Rules
35+
--------------------
36+
37+
The easiest way is to install the Apache recipe by executing the following command:
38+
39+
.. code-block:: terminal
40+
41+
$ composer require symfony/apache-pack
42+
43+
This recipe installs a ``.htaccess`` file containing the rewrite rules in the ``public/`` directory.
44+
45+
.. tip::
46+
47+
A performance improvement can be achieved by putting the rewrite rules from the ``.htaccess``
48+
file to the VirtualHost block of your Apache configuration and disallowing ``.htaccess`` from
49+
override by changing ``AllowOverride All`` to ``AllowOverride None`` in your VirtualHost block.
50+
3451
Apache with mod_php/PHP-CGI
35 40F8 52
---------------------------
3653

0 commit comments

Comments
 (0)
0