Skip to content

Commit

Permalink
Simplify Apache config with FallbackResource
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 4, 2018
1 parent 1c855de commit e8dd6b0
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions setup/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ and increase web server performance:
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
FallbackResource /app.php
</Directory>
# uncomment the following lines if you install assets as symlinks
Expand All @@ -93,13 +88,11 @@ and increase web server performance:
# Options FollowSymlinks
# </Directory>
# optionally disable the RewriteEngine for the asset directories
# which will allow apache to simply reply with a 404 when files are
# not found instead of passing the request into the full symfony stack
# optionally disable the fallback resource for the asset directories
# which will allow Apache to return a 404 error when files are
# not found instead of passing the request to Symfony
<Directory /var/www/project/web/bundles>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
FallbackResource disabled
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
Expand Down

0 comments on commit e8dd6b0

Please sign in to comment.