KISS httpd
  • C 99.1%
  • Makefile 0.9%
Find a file
2026-04-17 20:12:25 +00:00
config.h we on git now nurga 2026-04-17 20:04:48 +00:00
khttpd.c we on git now nurga 2026-04-17 20:04:48 +00:00
Makefile we on git now nurga 2026-04-17 20:04:48 +00:00
README.md remove extra ` 2026-04-17 20:12:25 +00:00

khttpd - KISS http daemon

tiny HTTP server in ANSI compliant C using POLL(2).

build:
        make

make (un)install:
        make install
        make uninstall

usage:

        khttpd args.. -r /var/www

arguments:
        -D              daemonize
        -H              send Server header
        -M              use text/plain for unknown types
        -l              enable directory listings
        --css file      listing page css        
        -a addr         bind address                    [default: 0.0.0.0   ]
        -b bytes        max request header bytes        [default: 4095      ]
        -p port         bind port                       [default: 8080      ]
        -r root         web root                        [default: cwd       ]
        -c              enable chroot
        -u user         drop privileges to user
        -g group        drop privileges to group
        -m max          max concurrent connections      [default: 128       ]
        -i index        index filename                  [default: index.html]
        -t seconds      idle read timeout               [default: 10        ]
        -T threads      number of threads/workers       [default: 1         ]

notes:
        no TLS, use stunnel or something.