unit icon indicating copy to clipboard operation
unit copied to clipboard

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

Open Evgeniy-Bondarenko opened this issue 5 years ago • 1 comments

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; }

Evgeniy-Bondarenko avatar Nov 03 '20 12:11 Evgeniy-Bondarenko

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.

VBart avatar Nov 09 '20 07:11 VBart