cgi_servlet

NAME DESCRIPTION PARAMETERS SEE ALSO AUTHOR

NAME

cgi_servlet - a C servlet that implements CGI

DESCRIPTION

Implements the CGI 1.1 spec for running external programs from an HTTP server.

Except: does not implement $PATH_INFO and $PATH_TRANSLATED. If you are using those you could switch to using $QUERY_STRING, or better yet rewrite your CGI as a servlet.

PARAMETERS

limit_loadav

Maximum load average. If the loadav is above this, new CGI requests will get an HTTP 503 temporary failure status. Default: 10.

limit_cpu

Maximum seconds of CPU time allowed before the CGI is killed. Default: 10.

limit_processes

Maximum number of sub-processes allowed for each CGI. Default: 5.

limit_core

Maximum size core file to generate in case of crashes. Default: 0 (no core files).

priority

What scheduler priority to use. Zero is normal, 20 is super-nice. Default: 15.

path

Setting for the PATH environment variable. Default: "/usr/local/bin:/usr/bin:/bin".

ld_library_path

Setting for the LD_LIBRARY_PATH environment variable. Default: "/usr/local/lib:/usr/lib".

SEE ALSO

coleman(8), servlet(3), file_servlet(8), test_servlet(8), sample_servlet(8)

AUTHOR

Copyright © 2014 by Jef Poskanzer <jef@mail.acme.com>. All rights reserved.