Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit677b9b2

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 FallbackResourceCommits-------e8dd6b0 Simplify Apache config with FallbackResource
2 parents676fc4e +e8dd6b0 commit677b9b2

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

‎setup/web_server_configuration.rst‎

Lines changed: 5 additions & 12 deletions
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 theRewriteEngine for the asset directories
97-
# which will allowapache tosimply reply witha 404 when files are
98-
# not found instead of passing the requestinto the full symfony stack
91+
# optionally disable thefallback resource for the asset directories
92+
# which will allowApache toreturna 404 error when files are
93+
# not found instead of passing the requestto 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)

[8]ページ先頭

©2009-2025 Movatter.jp