nginx error location for all servers
Is it possible to define a common location for all servers?
No.
You could make separate file and include
it into all your servers.
/etc/nginx/error-location.inc:
location ^~ /error/ { internal; root /var/www/nginx/errors;}
And then:
server { ... include error-location.inc;}server { ... include error-location.inc;}