Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix d10 assets redirect issue. #23

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions conf/presets/drupal.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ location / {
}

location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
rewrite ^ /index.php;
}

# Don't allow direct access to PHP files in the vendor directory.
Expand Down Expand Up @@ -89,10 +89,9 @@ location ~ '\.php$|^/update.php' {
fastcgi_keep_conn on;
}

# Fighting with Styles? This little gem is amazing.
# location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
location ~ ^/sites/.*/files/styles/ { # For Drupal >= 7
try_files $uri @rewrite;
# Passes image style and asset generation to PHP.
location ~ ^/sites/.*/files/(css|js|styles)/ {
try_files $uri @rewrite;
}

# Handle private files through Drupal. Private file's path can come
Expand Down