HTTPD feature request

Peter Müller peter at ati.es
Tue Feb 16 16:41:43 UTC 2010


"Peter Korsgaard" <jacmet at uclibc.org> escribió:

>>>>>> "Peter" == Peter Müller <peter at ati.es> writes:
>
> Hi,
>
>  Peter> Yes, i have that done now with a "/cgi-bin/e404.cgi" patch. Not
>  Peter> clean, but works for me. Thanks!
>
> We could probably do something like:
>
> #if ENABLE_FEATURE_HTTPD_CGI
>     if (strncmp(, "cgi-bin/", 8) == 0)
>        return send_cgi_and_exit( .. );
>     else
> #endif
>        return send_file_and_exit( .. );
>

I don't really like all that cgi-bin stuff.

httpd config may allow this:

I:index.sh
E404:e404.sh
*.sh:/bin/sh

index.sh is ok and get executed, but e404.sh won't.
I need this to send a 307 status code when the page is not found.

Thank you.



More information about the busybox mailing list