Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions nginx.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ location /media/ {
# image_filter_jpeg_quality 90;
# }

try_files $uri $uri/ /get.php$is_args$args;
# try_files $uri $uri/ /get.php$is_args$args;

location ~ ^/media/theme_customization/.*\.xml {
deny all;
Expand All @@ -180,7 +180,7 @@ location /media/ {
add_header Cache-Control "no-store";
add_header X-Frame-Options "SAMEORIGIN";
expires off;
try_files $uri $uri/ /get.php$is_args$args;
# try_files $uri $uri/ /get.php$is_args$args;
}
add_header X-Frame-Options "SAMEORIGIN";
}
Expand Down
2 changes: 1 addition & 1 deletion pub/media/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SetHandler default-handler
############################################
## rewrite everything else to get.php

RewriteRule .* ../get.php [L]
RewriteRule .*.(ico|jpg|jpeg|png|gif|svg|svgz|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2)$ ../get.php [L]
</IfModule>

############################################
Expand Down