Warning: The changes in the virtual hosts configuration templates are applied to all domains on the server.

Alternatively, disable proxy mode for the domain example.com so only nginx is used for serving the domain. In this case, it is possible to define location / in Plesk in Domains > example.com > Apache & nginx Settings > Additional nginx directives.