Skip to content

Commit 677b9b2

Browse files
committed
minor #10010 Simplify Apache config with FallbackResource (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Simplify Apache config with FallbackResource Commits ------- e8dd6b0 Simplify Apache config with FallbackResource
2 parents 676fc4e + e8dd6b0 commit 677b9b2

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

setup/web_server_configuration.rst

+5-12
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ and increase web server performance:
7979
Order Allow,Deny
8080
Allow from All
8181
82-
<IfModule mod_rewrite.c>
83-
Options -MultiViews
84-
RewriteEngine On
85-
RewriteCond %{REQUEST_FILENAME} !-f
86-
RewriteRule ^(.*)$ app.php [QSA,L]
87-
</IfModule>
82+
FallbackResource /app.php
8883
</Directory>
8984
9085
# uncomment the following lines if you install assets as symlinks
@@ -93,13 +88,11 @@ and increase web server performance:
9388
# Options FollowSymlinks
9489
# </Directory>
9590
96-
# optionally disable the RewriteEngine for the asset directories
97-
# which will allow apache to simply reply with a 404 when files are
98-
# not found instead of passing the request into the full symfony stack
91+
# optionally disable the fallback resource for the asset directories
92+
# which will allow Apache to return a 404 error when files are
93+
# not found instead of passing the request to Symfony
9994
<Directory /var/www/project/web/bundles>
100-
<IfModule mod_rewrite.c>
101-
RewriteEngine Off
102-
</IfModule>
95+
FallbackResource disabled
10396
</Directory>
10497
ErrorLog /var/log/apache2/project_error.log
10598
CustomLog /var/log/apache2/project_access.log combined

0 commit comments

Comments
 (0)