Commit a2e5382b authored by Fabien Potencier's avatar Fabien Potencier

minor #1478 Update web_servers.rst (adamcameron)

This PR was merged into the 2.1.x-dev branch.

Discussion
----------

Update web_servers.rst

Just another option for Apache that works

Commits
-------

d639b447 Update web_servers.rst
parents 6f539e08 d639b447
......@@ -36,6 +36,24 @@ Alternatively, if you use Apache 2.2.16 or higher, you can use the
If your site is not at the webroot level you will have to adjust the path to
point to your directory, relative from the webroot.
Or if you're using a VirtualHost, you can add the same directive to the VirtualHost's Directory entry:
.. code-block:: apache
<VirtualHost *:80>
# other directives
<Directory /var/www/domain.com/>
# other directives
FallbackResource /index.php
</Directory>
</VirtualHost>
.. note::
Note that you need the leading forward slash there, unlike with the .htaccess version
nginx
-----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment