Skip to content

Commit

Permalink
merge in upstream commit magento/magento2@32d30a5 - change to static …
Browse files Browse the repository at this point in the history
…sig regex
  • Loading branch information
aj-adl committed Oct 31, 2018
1 parent 89aad2c commit 2e19bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serve-magento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ location /static/ {
# Remove signature of the static files that is used to overcome the browser cache
location ~ ^/static/version {
rewrite ^/static/(version\d*/)?(.*)$ /static/\$2 last;
rewrite ^/static/(version[^/]+/)?(.*)$ /static/\$2 last;
}
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
Expand Down Expand Up @@ -158,7 +158,7 @@ location /media/import/ {
}
# PHP entry point for main application
location ~ (index|get|static|report|404|503)\.php$ {
location ~ (index|get|static|report|404|503|health_check)\.php$ {
try_files \$uri =404;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_buffers 1024 4k;
Expand Down

0 comments on commit 2e19bbd

Please sign in to comment.