Nginx Craft Versions Save

An Nginx virtual host configuration for Craft CMS that implements a number of best-practices.

1.0.34

3 years ago

Added

  • Added a Forge Template NginxFastCGICacheTemplate.conf
  • Opt out of Google Federated Learning of Cohorts ("FLoC") via the Permissions-Policy header. ref:

1.0.33

3 years ago

Changed

  • Updated the Forge template to use more Forge-provided variables

1.0.32

3 years ago

Changed

  • Changed the include path from /etc/nginx to /home/forge for the Forge config
  • Removed repeated server_tokens within Primary block
  • Changes max-age for HSTS to be one year for preloading

1.0.31

3 years ago

Changed

  • Changed public to web for the server root example

1.0.30

3 years ago

Added

1.0.29

3 years ago

Changed

  • Fix multi-site requests missing query params

1.0.28

3 years ago

Changed

  • Set server_tokens to off
  • Changed the dhparam setting to /etc/nginx/dhparams.pem to mirror the Forge default

1.0.27

3 years ago

Changed

  • Explicitly set DOCUMENT_ROOT

1.0.26

3 years ago

Changed

  • Changed $document_root to $realpath_root to sidestep opcache issues automatically Learn More

1.0.25

3 years ago

Changed

  • Route any 404s for expires.conf matches back through Craft for handling