diff --git a/roles/php_website/templates/nginx_site.j2 b/roles/php_website/templates/nginx_site.j2 index 84eaf22f5a33078f6107649875d3f70058606399..fb0d12b9e467448fb5b10633543bbed35d84a342 100644 --- a/roles/php_website/templates/nginx_site.j2 +++ b/roles/php_website/templates/nginx_site.j2 @@ -48,6 +48,11 @@ server { location ~ {{ php_file_regex }} { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/{{ fqdn }}.sock; + + {% for header, value in http_header_overrides | dictsort -%} + fastcgi_param {{ 'HTTP_' + header.replace('-', '_').upper() }} "{{ value }}"; + {% endfor -%} + } # Serve the files.