Skip to content

Commit

Permalink
Move the post_read directive outside location
Browse files Browse the repository at this point in the history
Since it always behaved like being outside, and in newer versions of ngx_mruby it'll fail if it's
inside location.

See matsumotory/ngx_mruby#210
  • Loading branch information
ciprianc committed May 3, 2017
1 parent 30b17d9 commit d8b0913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/config/templates/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ http {
resolver <%= resolver %>;
<% 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;
Expand Down

0 comments on commit d8b0913

Please sign in to comment.