git.strcat.st

/strcat/httpd.git/ - summarytreelogarchive

description

static webserver in ANSI C

clone
git clone https://git.strcat.st/strcat/httpd.git

README

```
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.
```