Skip to content

Commit 3d7838b

Browse files
committed
Merge branch '2.3' into 2.7
2 parents 5331783 + 2a6dc36 commit 3d7838b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ and increase web server performance:
9393
# Options FollowSymlinks
9494
# </Directory>
9595
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
99+
<Directory /var/www/project/web/bundles>
100+
<IfModule mod_rewrite.c>
101+
RewriteEngine Off
102+
</IfModule>
103+
</Directory>
96104
ErrorLog /var/log/apache2/project_error.log
97105
CustomLog /var/log/apache2/project_access.log combined
98106
</VirtualHost>

0 commit comments

Comments
 (0)