FS#59285 - [uwsgi] add uwsgi-plugin-notfound
Attached to Project:
Community Packages
Opened by Daniel Wendler (BMRMorph) - Monday, 09 July 2018, 19:59 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 18 July 2018, 14:33 GMT
Opened by Daniel Wendler (BMRMorph) - Monday, 09 July 2018, 19:59 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 18 July 2018, 14:33 GMT
|
Details
Description:
Please add the "notfound" plugin as new Package to the uwsgi PKGBUILD. This plugin is a very small one (resulting Package is ~12k) and could be used as safety net with returns 404 (instead of closing the connection) in case of an missing interpreter or an missing static file delivery. Additional info: * package version(s): 2.0.17-2 I've modify the PKGBUILD to get the new Package (please see the attached file). |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 18 July 2018, 14:33 GMT
Reason for closing: Implemented
Additional comments about closing: uwsgi-plugin-notfound 2.0.17.1-2
Wednesday, 18 July 2018, 14:33 GMT
Reason for closing: Implemented
Additional comments about closing: uwsgi-plugin-notfound 2.0.17.1-2
if someone use uwsgi as an application server which also delivers static files and specify say the only allowed ending for the application server is .php so the connection will closed if
a) the requested file is not found in the filesystem (static) and
b) the requested file is not an .php file
The plugin would return an 404 in this case, which is more friendly than an 502 in case someone use it behind an reverse proxy which not run on the same system.
BTW: i'm not sure if changes in the "archlinux.ini" (plugins = ) are necessary.
ATM i leave it alone because it works and other plugins also not mentioned in this file (ex. zabbix, python).