Skip to content

Commit 3533f96

Browse files
committed
Add a short mention to apache-pack in the web server docs
1 parent f90d149 commit 3533f96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup/web_server_configuration.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ directive to pass requests for PHP files to PHP FPM:
9595
CustomLog /var/log/apache2/project_access.log combined
9696
</VirtualHost>
9797
98+
.. note::
99+
100+
If you are doing some quick tests with Apache, you can also run
101+
``composer require symfony/apache-pack``. This package creates an ``.htaccess``
102+
file in the ``public/`` directory with the necessary rewrite rules needed to serve
103+
the Symfony application. However, in production, it's recommended to move these
104+
rules to the main Apache configuration file (as shown above) to improve performance.
105+
98106
Nginx
99107
-----
100108

0 commit comments

Comments
 (0)