Problem/Motivation
nginx is even more popular than Apache: https://w3techs.com/technologies/overview/web_server
We ship with .htaccess
for Apache and web.config
for IIS. We do not provide any sample configuration for nginx.
There is a recipe in the nginx wiki at https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ but it likely does not match our current set of regular expressions, header rules, etc, that we ship in .htaccess and web.config.
It is likely that we cannot provide a drop-in configuration file as the exact location of the php-fpm upstream depends on how php-fpm is installed, but we could provide a commented sample file that matches our current best practices for security.
Steps to reproduce
Proposed resolution
Add a sample configuration file for nginx that is equivalent to the rules in .htaccess/web.config.