-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Flex node for Apache #8806
Changes from 3 commits
e00a0f1
d71d22a
02cc3da
07abdb8
843653f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
This recipe will install the ``.htaccess`` file in the ``public/`` directory. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "the |
||
|
||
.. tip:: | ||
|
||
A performance improvement can be achieved by putting the rewrite rules in your | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: |
||
VirtualHost block and changing ``AllowOverride All`` to ``AllowOverride None``. | ||
|
||
Apache with mod_php/PHP-CGI | ||
--------------------------- | ||
|
||
|
There was a problem hiding this comment.
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:public/.htaccess
filecd 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
toAllowOverride None