[arch-general] Tiny webserver to run as root
Hi all Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts. I have tried a few: nanoweb (which is written in php as well) but has some problems with CGI scripts and when it runs in multi process mode it brings the system load up to exactly 1.00. Nullhttpd, but it's old and unmaintained. Tinyhttpd isn't up for the job as well (kept crashing at times). Thanks, Best regards, Glenn
On Sun, Jan 3, 2010 at 10:04 AM, RedShift <redshift@pandora.be> wrote:
Hi all
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts?
I speak under correction, but that seems wildly dangerous, and something that a secure webserver would be designed specifically *not* to do. -- Ryan W Sims
RedShift writes:
Hi all
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts.
I have tried a few: nanoweb (which is written in php as well) but has some problems with CGI scripts and when it runs in multi process mode it brings the system load up to exactly 1.00. Nullhttpd, but it's old and unmaintained. Tinyhttpd isn't up for the job as well (kept crashing at times).
Thanks,
Best regards,
Glenn
Hi, may be it is for you: http://docs.python.org/library/basehttpserver.html http://docs.python.org/library/cgihttpserver.html#module-CGIHTTPServer. Regards, Andrej
maybe the tux webserver? it runs in kernelspace (!) so it's very fast, but if it crashes... Dieter
Hi, I had a look at the 3.x version awhttpd. Select based(fast), small, cgi scripts(fork based). Unfortunately this version is not maintained anymore since the team moved on to 4.0 (heavy integration of a scheme interpreter). 3.x is entirely ANSI C. However, an even smaller version of the same codebase was used to implement the webserver within the axtls project. This one comes with an optional ssl support. Also just ANSI C. HTH, -T
Am 03.01.2010 16:04, schrieb RedShift:
Hi all
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts.
You should try busybox's httpd. It is fairly minimal.
On 01/03/2010 10:04 AM, RedShift wrote:
Hi all
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts.
I have tried a few: nanoweb (which is written in php as well) but has some problems with CGI scripts and when it runs in multi process mode it brings the system load up to exactly 1.00. Nullhttpd, but it's old and unmaintained. Tinyhttpd isn't up for the job as well (kept crashing at times).
Thanks,
Best regards,
Glenn
How about mini_httpd? http://acme.com/software/mini_httpd/ DR
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Jan 03, 2010 at 04:04:01PM +0100, RedShift wrote:
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts.
<http://www.fefe.de/gatling/> Incredible fast and very small. - -- The best thing about a boolean is even if you are wrong, you are only off by a bit. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJLQooNAAoJELgoSeO+fWZhlXgP/2Hs1FcaE+9mKNUomOFFutH4 JCqxXSlWOjUhDOqvCkVYSwoo1hRzXUHWZ7G6H5eZ0fXtMlod8yYUPwTfjvTj3AMe JRDmbbjBiAxhsOqCKpQi3cNPhfP52VOF/BzApxi5pa5JA2IKBFD53g3DBoZFodL5 Zz3JaPR377yzeR1NVOYuJ4qz8yYkDdnrBeAbFgjSEbRIUyMpzuJChkXSIQ78RoGM /jBzyX8QMrsFKJL3FbVtuhT1xP3E0KmTxNVObUmoAD3oLie8zspZ4W0RZi8OBxCo Gpu17JXWSV9dJwXuWKoPjtZ2LzP3c57uyX4mrEqPbAyPZpNdiynV3y6eNF1U8Kln TEJlxP5Pjn9oVLnZWDxlEEtjEtT9EGJJzinJPCLSVYYXXKGPWSkBPAOfIz3gprBN Qz25s+fdTPXlfLhcWB7fwspZQ2CRFx2CSksQym3amnVucpOwlJAlTPpzQQxEkt72 hkSdtbZAkPi8g9LQJkLtzQ5JDxYO9irRZ9oS9JWmBAoxhgLuZ3RldWUPh8ohng9q /zhUF5oRwFfRvSznu/78R0+LXltU7Gjh9Gh1yi+XdEatAAi+/8Qv5ZlaiKi8FryG R/Fg6AJJaxjAowPPxWV2+XWew8rCik+gVo9JXu+0NfhfNm39MY53n5vk3Xcdgfk0 tloKOasdQLiBGcCvniGA =w597 -----END PGP SIGNATURE-----
2010/1/5 Sebastian Köhler <sebkoehler@whoami.org.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, Jan 03, 2010 at 04:04:01PM +0100, RedShift wrote:
Does anyone have a suggestion for some software, a tiny webserver that is able to run as root and execute CGI scripts? It should be smaller than apache and preferably even smaller than lighttpd. It doesn't need a whole lot of features, it only needs to be able to execute CGI scripts.
I'm not really sure if this fits your needs, but maybe it does: http://nginx.org/en/
participants (9)
-
andrej.gelenberg@udo.edu
-
David Rosenstrauch
-
Dieter Plaetinck
-
RedShift
-
Ryan Sims
-
Sebastian Köhler
-
Thomas Bächler
-
Tobias Kieslich
-
Vincent Van Houtte