heiyeluren / tmhttpd

tmhttpd 是一个轻巧迷你无外部依赖的Http Server,适合嵌入式或简单服务场景 - The mini and simple Http Server (ANSI C, GCC require)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmhttpd - 简单迷你的Web服务器
The mini and simple Http Server (ANSI C, GCC require)

  • Last Modified: 2008/6/22 v1.0.0
  • Download: Here
     tmhttpd - TieMa(Tiny&Mini) Http Server


tmhttpd is a very small HTTP server. It run from daemon.

It implements all the basic features of an HTTP
server, including:
  
  *  Support GET/HEAD method
  *  The common MIME types.
  *  Support Self custom default index page
  *  Directory listings.
  *  Support access log
  *  Support Self custom port and max clients
  *  ...


tmhttpd command help


=======================================
 TieMa(Tiny&Mini) Http Server
 Version 1.0.0 alpha

 heiyeluren 

=======================================

Usage: ./tmhttpd [OPTION] ...

Options:
  -D, --is-deubg        Is open debug mode, default No
  -d, --is-daemon       Is daemon running, default No
  -p, --port=PORT       Server listen port, default 80
  -m, --max-client=SIZE Max connection requests, default 100
  -L, --is-log          Is write access log, default No
  -l, --log-path=PATH   Access log path, default /tmp/tmhttpd.log
  -b, --is-browse       Is allow browse file/dir list, default No
  -r, --doc-root=PATH   Web document root directory, default programe current directory ./
  -i, --dir-index=FILE  Directory default index file name, default index.html
  -h, --help            Print help information

Example:
  ./tmhttpd -d -p 80 -m 128 -L -l /tmp/access.log -b -r /var/www -i index.html
  ./tmhttpd -d -p80 -m128 -L -l/tmp/access.log -b -r/var/www -iindex.html
  ./tmhttpd --is-daemon --port=80 --max-client=128 --is-log --log-path=/tmp/access.log --is-browse --doc-root=/var/www --dir-index=index.html
  

About

tmhttpd 是一个轻巧迷你无外部依赖的Http Server,适合嵌入式或简单服务场景 - The mini and simple Http Server (ANSI C, GCC require)

License:BSD 2-Clause "Simplified" License


Languages

Language:C 97.5%Language:Roff 1.6%Language:Makefile 0.7%Language:HTML 0.2%