diff --git a/roles/wordpress-setup/templates/wordpress-site.conf.j2 b/roles/wordpress-setup/templates/wordpress-site.conf.j2 index e37ed0c3f..f3bd34463 100644 --- a/roles/wordpress-setup/templates/wordpress-site.conf.j2 +++ b/roles/wordpress-setup/templates/wordpress-site.conf.j2 @@ -23,11 +23,6 @@ server { error_log {{ www_root }}/{{ item.key }}/logs/error.log; {% endblock %} - {% if nginx_http3_enabled and ssl_enabled -%} - include includes/directive-only/http3-tune.conf; - include includes/directive-only/http3-negotiate.conf; - {% endif -%} - {% block server_basic -%} root {{ www_root }}/{{ item.key }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}; index index.php index.htm index.html; @@ -43,6 +38,11 @@ server { # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#virtualbox sendfile off; + {% endif -%} + + {% if nginx_http3_enabled and ssl_enabled -%} + include includes/directive-only/http3-tune.conf; + include includes/directive-only/http3-negotiate.conf; {% endif -%} {% endblock -%}