Skip to content

Commit

Permalink
Fixed formatting for Drupal 8 command matching comments. Lines now <=…
Browse files Browse the repository at this point in the history
… 80 chars.

Also removed some extra whitespace.
  • Loading branch information
colans committed Jun 7, 2016
1 parent 19bc8b6 commit 46c07d4
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions source/start/topics/recipes/drupal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ Recipe
location ~ ^/sites/.*/private/ {
return 403;
}
# Allow "Well-Known URIs" as per RFC 5785
location ~* ^/.well-known/ {
allow all;
}
}
# Block access to "hidden" files and directories whose names begin with a
# period. This includes directories used by version control systems such
# as Subversion or Git to store control files.
Expand All @@ -75,14 +75,17 @@ Recipe
return 404;
}
# In Drupal 8, we must also match new paths where the '.php' appears in the middle,
# such as update.php/selection. The rule we use is strict, and only allows this pattern
# with the update.php front controller. This allows legacy path aliases in the form of
# blog/index.php/legacy-path to continue to route to Drupal nodes. If you do not have
# any paths like that, then you might prefer to use a laxer rule, such as:
# In Drupal 8, we must also match new paths where the '.php' appears in
# the middle, such as update.php/selection. The rule we use is strict,
# and only allows this pattern with the update.php front controller.
# This allows legacy path aliases in the form of
# blog/index.php/legacy-path to continue to route to Drupal nodes. If
# you do not have any paths like that, then you might prefer to use a
# laxer rule, such as:
# location ~ \.php(/|$) {
# The laxer rule will continue to work if Drupal uses this new URL pattern with front
# controllers other than update.php in a future release.
# The laxer rule will continue to work if Drupal uses this new URL
# pattern with front controllers other than update.php in a future
# release.
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
Expand All @@ -98,7 +101,7 @@ Recipe
location ~ ^/sites/.*/files/styles/ { # For Drupal >= 7
try_files $uri @rewrite;
}
# Handle private files through Drupal.
location ~ ^/system/files/ { # For Drupal >= 7
try_files $uri /index.php?$query_string;
Expand Down

0 comments on commit 46c07d4

Please sign in to comment.