drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

Adding headers to included files / sub-scopes drops those set earlier

Open colans opened this issue 9 years ago • 0 comments

From the documentation:

There could be several add_header directives. These directives are inherited from the previous level if and only if there are no add_header directives defined on the current level.

So we should keep these in nginx.conf. Currently, the ones causing me problems are the following:

  • add_header Strict-Transport-Security "max-age=7200";

...and several in apps/drupal/microcache_fcgi.conf

colans avatar Apr 20 '15 20:04 colans