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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Daniel Wendler (BMRMorph) - Tuesday, 10 July 2018, 08:59 GMT
maybe some words to the use case:
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).
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 17 July 2018, 23:22 GMT
Check the package now.
Comment by Daniel Wendler (BMRMorph) - Wednesday, 18 July 2018, 07:18 GMT
Thanks for that, it works.

Loading...