From e8dd6b02d78f74e63615c037034ad6a079ef4928 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 4 Jul 2018 11:32:31 +0200 Subject: [PATCH] Simplify Apache config with FallbackResource --- setup/web_server_configuration.rst | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/setup/web_server_configuration.rst b/setup/web_server_configuration.rst index 43d20495173..3eed77853ad 100644 --- a/setup/web_server_configuration.rst +++ b/setup/web_server_configuration.rst @@ -79,12 +79,7 @@ and increase web server performance: Order Allow,Deny Allow from All - - Options -MultiViews - RewriteEngine On - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ app.php [QSA,L] - + FallbackResource /app.php # uncomment the following lines if you install assets as symlinks @@ -93,13 +88,11 @@ and increase web server performance: # Options FollowSymlinks # - # 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 - - RewriteEngine Off - + FallbackResource disabled ErrorLog /var/log/apache2/project_error.log CustomLog /var/log/apache2/project_access.log combined