diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cc910a2..97b116d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* [#181](https://github.com/heroku/heroku-buildpack-static/pull/181) Fix compatibility with ngx_mruby 1.18.4+ * [#177](https://github.com/heroku/heroku-buildpack-static/pull/177) Make curl retry in case of a failed download * [#177](https://github.com/heroku/heroku-buildpack-static/pull/177) Fix the printing of the installed nginx version * [#177](https://github.com/heroku/heroku-buildpack-static/pull/177) Switch to the recommended S3 URL format diff --git a/scripts/config/templates/nginx.conf.erb b/scripts/config/templates/nginx.conf.erb index f128862b..0a6b7aea 100644 --- a/scripts/config/templates/nginx.conf.erb +++ b/scripts/config/templates/nginx.conf.erb @@ -55,8 +55,9 @@ http { auth_basic_user_file <%= basic_auth_htpasswd_path %>; <% end %> + mruby_post_read_handler /app/bin/config/lib/ngx_mruby/headers.rb cache; + location / { - mruby_post_read_handler /app/bin/config/lib/ngx_mruby/headers.rb cache; mruby_set $fallback /app/bin/config/lib/ngx_mruby/routes_fallback.rb cache; <% if clean_urls %> try_files $uri.html $uri $uri/ $fallback;