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.35k stars 321 forks source link

Enable error_page 500 / 502 / 503 / 504 in Unit; #489

Open Evgeniy-Bondarenko opened 3 years ago

Evgeniy-Bondarenko commented 3 years ago

How enable custom page in UNIT error (php/pyhon applications)?

as in nginx:

  error_page 502 /502.html;
  error_page 503 /503.html;
  location = /502.html { root /var/www/; try_files $uri /502.html; }
  location = /503.html { root /var/www/; try_files $uri /503.html; }
VBart commented 3 years ago

Unfortunately, there's no way to overwrite error pages in Unit right now and you have to use external solution. This feature is in the TODO list.