nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.27k stars 324 forks source link

Add error code and error message as variables at error page #1347

Open aljaznuncic opened 1 week ago

aljaznuncic commented 1 week ago

It would be very welcome if error codes and error messages were accessible as variables (eg: {{ error_code }}, {{ error_message }}, maybe also some other information about the error/server, if it would be interesting to display) and thus it was possible to make only 1 customized template for all errors (not an error page for each error code).

ac000 commented 1 week ago

Is this for nginx (the webserver) or NGINX Unit?