Advertisement
Guest User

plack 404 errors

a guest
Jan 11th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. # in app.psgi
  2. use Plack::Builder;
  3.  
  4. builder {
  5. enable "Plack::Middleware::ErrorDocument",
  6. 500 => '/uri/errors/500.html', 404 => '/uri/errors/404.html',
  7. subrequest => 1;
  8. $app;
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement