Guest User

plack 404 errors

a guest
Jan 11th, 2018
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data