Skip to content

Commit 4f20edf

Browse files
ricardodevriesweaverryan
authored andcommitted
Improvements on the apache section.
1 parent 17748d3 commit 4f20edf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

setup/web_server_configuration.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,22 @@ to use PHP :ref:`with Nginx <web-server-nginx>`.
3131

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

34-
Using Symfony Flex in Apache
35-
----------------------------
34+
Adding Rewrite Rules
35+
--------------------
3636

37-
The recommended way is to install the apache recipe by executing the following command:
37+
The easiest way is to install the apache recipe by executing the following command:
3838

3939
.. code-block:: terminal
4040
41-
$ cd my-project/
4241
$ composer require symfony/apache-pack
4342
43+
This recipe will install the ``.htaccess` file in the ``public/`` directory.
44+
45+
.. tip::
46+
47+
A performance improvement can be achieved by putting the rewrite rules in your
48+
VirtualHost block and changing ``AllowOverride All`` to ``AllowOverride None``.
49+
4450
Apache with mod_php/PHP-CGI
4551
---------------------------
4652

0 commit comments

Comments
 (0)