Skip to content

Commit

Permalink
add error_page_recursive override per server
Browse files Browse the repository at this point in the history
  • Loading branch information
tombokombo committed Aug 15, 2023
1 parent 7413c7f commit f6303fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/openresty/conf.d/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ server {
{% endfor %}
{% endif %}

{% if _site_error_pages_recursive | default(false) %}
{% if server.error_pages_recursive_override is defined and server.error_pages_recursive_override is sameas true %}
recursive_error_pages on;
{% elif _site_error_pages_recursive is defined and _site_error_pages_recursive is sameas true and server.error_pages_recursive_override is not defined %}
recursive_error_pages on;
{% endif %}

Expand Down

0 comments on commit f6303fd

Please sign in to comment.