Thttpd lightweight web Server (HTTP/1.1 and simple CGI Support)

Source: Internet
Author: User

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.