8000 Flex node for Apache · Pull Request #8806 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Flex node for Apache #8806

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions setup/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ to use PHP :ref:`with Nginx <web-server-nginx>`.

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

Adding Rewrite Rules
--------------------

The easiest way is to install the apache recipe by executing the following command:

.. code-block:: terminal

$ composer require symfony/apache-pack

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One way or another, the user will need the rewrite rules. They can either put them in public/.htaccess or put them in their virtual host. So:

  • Let's rename this section to something like "Adding Rewrite Rules"
  • Change the text from "recommended way" to "the easiest way".
  • We should also say (in the text) what this does: it will install a public/.htaccess file
  • No need to show the cd my-project

Then, after the command, mention that you can get a performance boost by putting the rewrite rules in your VirtualHost and changing AllowOverride All to AllowOverride None

This recipe will install the ``.htaccess`` file in the ``public/`` directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the .htaccess file" => "a .htaccess files containing the rewrite rules"?


.. tip::

A performance improvement can be achieved by putting the rewrite rules in your
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion:
"by moving the rewrite rules from the .htaccess file to the VirtualHost block of your Apache configuration and disallowing .htaccess overrides by changing AllowOverride All to AllowOverride None (where though?).

VirtualHost block and changing ``AllowOverride All`` to ``AllowOverride None``.

Apache with mod_php/PHP-CGI
---------------------------

Expand Down
0