BSD Ports

www/thttpd 2.29_1 FreeBSD

Tiny/turbo/throttling HTTP server with CGI support

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
www
Package size
67.5 KiB, 148.4 KiB installed

Description

thttpd is a simple, small, portable, fast, and secure HTTP server.

  • Simple: It handles only the minimum necessary to implement HTTP/1.1.

  • Small: It also has a very small run-time size, since it does not fork and is very careful about memory allocation.

  • Portable: It compiles cleanly on SunOS 4.1.x, Solaris 2.x, BSD/OS 2.x, Linux 1.2.x, and OSF/1 (on a 64-bit Alpha).

  • Fast: In typical use it's about as fast as the best full-featured servers (Apache, NCSA, Netscape). Under extreme load it's much faster.

  • Secure: It goes to great lengths to protect the web server machine against attacks and breakins from other sites.

It also has one extremely useful feature (URL-traffic-based throttling) that no other server currently has.

In the other systems

SystemPortVersion
FreeBSDwww/thttpd2.29_1
NetBSDwww/thttpd2.29
DragonFlywww/thttpd2.29_1
MidnightBSDwww/thttpd2.29_1

Install

Binary package:

pkg install thttpd

From the ports tree:

cd /usr/ports/www/thttpd/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	thttpd>0:www/thttpd

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.29_12.29_12.29_12.29_12.29_1
FreeBSD:14:quarterly2.29_12.29_1n/a2.29_12.29_1
FreeBSD:15:latest2.29_12.29_1n/a2.29_12.29_1
FreeBSD:15:quarterly2.29_12.29_1n/an/an/a
FreeBSD:16:latest2.29_12.29_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

Options name: www_thttpd

OptionDefaultDescription
FLUSH_LOGonfflush() the log file after each request
HTACCESSoffIP-based authorization (.htaccess) support
INDEXESoffGenerate index pages for directories
LOG_UNKNOWNoffLog unknown request headers
REAL_IPonRespect (pass on) "X-Forwarded-For" header
SENDFILEonUse sendfile(2) to serve files
STATSonCollect internal stats and print to system log
USES
cpe
Service scripts
thttpd

Message after installing

If you want users to be able to create their own web
subdirectories off of the main web directory, you need to:

  1. Add a group for www admins (or use "www")
  2. chgrp thatgroup /usr/local/sbin/makeweb /usr/local/www/thttpd
  3. chmod g+sx /usr/local/sbin/makeweb
  4. Tell users about makeweb(1)

See http://www.acme.com/software/thttpd/notes.html for more
detailed instructions.

Files

Manual pages 6
  • makeweb(1)
  • redirect(8)
  • ssi(8)
  • syslogtocern(8)
  • thtpasswd(1)
  • thttpd(8)
pkg-plist 15
  • etc/newsyslog.conf.d/thttpd.conf
  • @sample etc/thttpd.conf.sample
  • share/man/man1/makeweb.1.gz
  • share/man/man1/thtpasswd.1.gz
  • share/man/man8/redirect.8.gz
  • share/man/man8/ssi.8.gz
  • share/man/man8/syslogtocern.8.gz
  • share/man/man8/thttpd.8.gz
  • sbin/makeweb
  • sbin/syslogtocern
  • sbin/thttpd
  • sbin/thtpasswd
  • www/thttpd/cgi-bin/phf
  • www/thttpd/cgi-bin/redirect
  • www/thttpd/cgi-bin/ssi
distinfo 1
FileSizeSHA256
thttpd-2.29.tar.gz13396799c09f47da326b1e7b5295c45549d2b65534dce27c44812cf7eef1441681a397
Master sites 1
  • http://www.acme.com/software/thttpd/

Commit history 0

No commits in the history this site was built from.