Thttpd Introduction
Thttpd is a very small and lightweight web server, which is very simple. It only provides HTTP/1.1 and simple CGI support. nginx needs to support cgi and can install this lightweight web server.
Thttpd installation 123456cd/tmp/wget http://acme.com/software/thttpd/thttpd-2.25b.tar.gztarxzf thttpd-2.25b.tar.gzcdthttpd-2.25b/./configure -- prefix =/usr/local/thttpdmake & makeinstall
Possible errors:
1htpasswd. c: 52: error: conflicting typesfor 'getline'
Solution: Edit htpasswd. c and replace getline with get_line.
Thttpd Configuration
Create the/usr/local/thttpd/conf/thttpd. conf file:
1234567891011121314151617 # BEWARE: No empty lines are allowed! # This section overrides defaults # This section _ documents _ defaults in effect # port = 80 # nosymlink # default =! Chroot # novhost # nocgipat # nothrottles # host = 0.0.0.0 # charset = iso-8859-1host = 127.0.0.1port = 8008 user = thttpdlogfile =/usr/local/thttpd/log/thttpd. logpidfile =/usr/local/thttpd/log/thttpd. piddir =/usr/local/thttpd/www/cgipat = **. cgi | **. pl starts thttpd1/usr/local/thttpd/sbin/thttpd-C/usr/local/thttpd/conf/thttpd. conf
Http://acme.com/software/thttpd/