| Summary: | Make Apache ErrorDocument a bit smarter (no unconditional pass to Plack) | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Marcel de Rooy <m.de.rooy> |
| Component: | Architecture, internals, and plumbing | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | dcook |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40954 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| Patch complexity: | --- | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
|
Description
Marcel de Rooy
2025-10-31 10:44:33 UTC
Copying from the other report: (In reply to David Cook from comment #5) > (In reply to Marcel de Rooy from comment #3) > > Also I am wondering if we should pass such Apache errors to Plack? It takes > > just a few hundred bytes to say Not found in about 50 ms with a trivial > > ErrorDocument but it takes 40K and 500ms to go to errors/404 or 500.pl in > > Plack. > > Shouldnt we reserve the Plack responses for Plack requests (so real perl > > ones)? > > I do think about that sometimes. It also takes up valuable Starman process > time in general. If you've got some bots sending lots of requests that > generate 404s, it doesn't really make sense to hammer your Starman with > requests for 404.pl. > > In the past, I've thought about generating static HTML files which could be > served from the DocumentRoot, so that Starman isn't being touched and Apache > can just do what it does best. |