FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

Please give me your LTO-4 or better tape library and I'll put it to good use.
Port details
thttpd Tiny/turbo/throttling HTTP server with CGI support
2.26_1 www on this many watch lists=25 search for ports that depend on this port Find issues related to this port Report an issue related to this port
Maintainer: danfe@FreeBSD.org search for ports maintained by this maintainer
Port Added: unknown
Also Listed In: ipv6
License: BSD2CLAUSE
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.

WWW: http://www.acme.com/software/thttpd/
SVNWeb : Homepage : Distfiles Availability : PortsMon

NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.

Build dependencies:
  1. gmake : devel/gmake
There are no ports dependent upon this port

To install the port: cd /usr/ports/www/thttpd/ && make install clean
To add the package: pkg install www/thttpd


Configuration Options
===> The following configuration options are available for thttpd-2.26_1:
     INDEXES=off: Generate index pages for directories
     IPREAL=on: Respect (pass on) "X-Forwarded-For" header
     SENDFILE=on: Use sendfile(2) to serve files
===> Use 'make config' to modify these settings

USES:
cpe gmake

Master Sites:
  1. http://distcache.FreeBSD.org/ports-distfiles/
  2. http://www.acme.com/software/thttpd/

Number of commits found: 67

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
20 May 2015 15:15:06
Original commit files touched by this commit  2.26_1
Revision:386861
amdmi3 search for other commits by this committer
- Fix patch after rerolled distfile [1]
- Mark MAKE_JOBS_UNSAFE, tries to use object file before it's built (cc:
match.o: No such file or directory)

Suggested by:	adamw [1]
Approved by:	portmgr blanket
20 May 2015 01:27:07
Original commit files touched by this commit  2.26_1
Revision:386830
amdmi3 search for other commits by this committer
- Chase distfile reroll

Diff seem to be innocent, only functional change is in syslog priorities

PR:		199562
Submitted by:	amdmi3
Approved by:	maintainer timeout (danfe, 1 month)
MFH:		2015Q2
22 Apr 2015 00:27:59
Original commit files touched by this commit  2.26
Revision:384472
amdmi3 search for other commits by this committer
- Add CPE info

Approved by:	portmgr blanket
19 Jan 2015 03:36:37
Original commit files touched by this commit  2.26
Revision:377378
danfe search for other commits by this committer
- Cleanup patches (rebase from previous version)
- Fix several warnings that were caught by Clang
- Strip installed programs; polish pkg-message text
18 Jan 2015 13:37:35
Original commit files touched by this commit  2.26
Revision:377327
danfe search for other commits by this committer
- Update to version 2.26 and cleanup MASTER_SITES; define LICENSE
- Change default WWW root from ${PREFIX}/www/data to more expected (and
  standard) ${WWWDIR} (${PREFIX}/www/thttpd) and default CGI pattern to
  "/cgi-bin/*" since this goes better in line with default installation
- Enable IPREAL option by default (do not convert it to unconditional
  patch as it could lead to privacy violation, which might be unwanted)
- Change served data default MIME type to "application/octet-stream"
- Rename thttpdpasswd(1) and its manpage to thtpasswd(1); this not just
  makes it shorter, but is more consistent with what popular GNU/Linux
  distributions do
- Stop generating index pages for directories by default for security
  reasons, provide an option for that
- Properly stagify port by patching upstream makefiles instead of doing
  entire installation by hand (and thus retire `do-install' target)
- Adjust and sort pkg-plist in accordance with the the above changes
18 Jan 2015 12:01:19
Original commit files touched by this commit  2.25b_6
Revision:377324
danfe search for other commits by this committer
Bring another several patches from Gentoo and Red Hat (also relevant to the
upcoming 2.26):

- Fix potential buffer overflow in expand_symlinks() function of libhttpd.c
- Better handling of tempfile and additional input validation in htpasswd(1)
- Make sure that the logfile is created or reopened as read/write by thttpd
  (www) user only (modified to allow group read access as well so web admin
  won't have to su(1) to super-user or "www" to be able to read logs) [1]

Bump port revision to account for these and previous changes.

Gentoo bug:	458896 [1]
Security:	CVE-2013-0348 [1]
18 Jan 2015 10:10:45
Original commit files touched by this commit  2.25b_5
Revision:377288
danfe search for other commits by this committer
Backport a (modified) patch from Red Hat to allow passing custom directory
for creating new user directories via makeweb(1).
17 Jan 2015 15:48:37
Original commit files touched by this commit  2.25b_5
Revision:377229
danfe search for other commits by this committer
In sight of upcoming update, merge a few things to get cleaner diffs:

- Add a patch for CVE-2005-3124 (courtesy of Red Hat?)
- By default thttpd doesn't respect (or pass on) the X-Forwarded-For
  header; use a patch [1] that puts X-Forwarded-For into Remote-Addr,
  but not enable it just yet
- Amend COMMENT, improve pkg-message, sort the knobs in Makefile, and
  reformat port description text for better readability while here

[1] http://wiki.nginx.org/ThttpdRealIP
08 Aug 2014 12:14:16
Original commit files touched by this commit  2.25b_5
Revision:364352
danfe search for other commits by this committer
- Try to fix parallel builds (-jX) by using GNU make(1)
- Convert sendfile(2) support into an OPTION (keep it on)
- Rearrange things in Makefile a bit while I'm here
23 Jun 2014 01:31:31
Original commit files touched by this commit  2.25b_5
Revision:358885
adamw search for other commits by this committer
Unbreak. Don't include the unversioned notes.html file, and instead
put a note about it into the pkg-message.

While here, STAGE, use @sample, and rename patch-xy's.
22 Jun 2014 22:24:21
Original commit files touched by this commit  2.25b_4
Revision:358858
bapt search for other commits by this committer
Mark as broken: no distinfo provided for some of the distfiles

With hat:	portmgr
20 Sep 2013 23:36:54
Original commit files touched by this commit  2.25b_4
Revision:327776
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
www)
10 Jul 2013 13:12:04
Original commit files touched by this commit  2.25b_4
Revision:322689
bapt search for other commits by this committer
Mark jobs unsafe
Convert to USES=gmake where appropriate
Trim headers
05 Aug 2012 23:19:40
Original commit files touched by this commit  2.25b_4
dougb search for other commits by this committer
Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
14 Jan 2012 08:57:23
Original commit files touched by this commit  2.25b_4
dougb search for other commits by this committer
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
19 Mar 2011 12:38:54
Original commit files touched by this commit  2.25b_4
miwi search for other commits by this committer
- Get Rid MD5 support
05 Sep 2010 21:12:18
Original commit files touched by this commit  2.25b_4
pgollucci search for other commits by this committer
- thttpd.conf is not a requirement; the CLI will suffice.

PR:             ports/137924
Submitted by:   Nick Hibma <nick@van-laarhoven.org>
Approved by:    maintainer timeout (danfe ; 380 days)
27 Mar 2010 00:15:24
Original commit files touched by this commit  2.25b_3
dougb search for other commits by this committer
Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
06 Jan 2009 16:53:07
Original commit files touched by this commit  2.25b_3
wxs search for other commits by this committer
- Remove conditional checks for FreeBSD 5.x and older

Approved by:    pav
19 Mar 2008 05:26:22
Original commit files touched by this commit  2.25b_3
danfe search for other commits by this committer
- Reformat Makefile header
- Unmute INSTALL_FOO statements
- Other small Makefile cleanups
- Take maintainership
- Improve on port description
18 Mar 2008 21:19:47
Original commit files touched by this commit  2.25b_3
anders search for other commits by this committer
Reset maintainership on these two ports that I no longer have an
interest for.
17 Jun 2007 19:38:09
Original commit files touched by this commit  2.25b_3
anders search for other commits by this committer
Nit-pick: regenerate config.h patch.
17 Jun 2007 19:37:11
Original commit files touched by this commit  2.25b_3
anders search for other commits by this committer
Do not log sendfile calls that return with ENOTCONN when USE_SENDFILE is
used, it is not interesting.

Bump PORTREVISION.

PR:             ports/91843
Submitted by:   Ben Goetter <goetter@mazama.net>
14 Jun 2007 21:10:45
Original commit files touched by this commit  2.25b_2
anders search for other commits by this committer
Rename htpasswd program to thttpdpasswd, some people might actually
want to install different webservers at the same time. Reflected in man
pages.

PR:             ports/112954
13 Jul 2006 07:38:49
Original commit files touched by this commit  2.25b_2
obrien search for other commits by this committer
Previously thttpd specified to start before /etc/rc.d/ldconfig, which has
an issue - one can easily need /etc/rc.d/ldconfig to run first.  So rather
than require 'SERVERS' and forcing to run before 'DAEMON', simply depend
on 'DAEMON'.  (which is really to gate "servers" like httpd, ftpd, etc..)

Approvedby:     anders@FreeBSD.org
06 Apr 2006 20:34:17
Original commit files touched by this commit  2.25b_2
anders search for other commits by this committer
Update checksum. Change of authors email address only.

PR:             92652
Submitted by:   Alexander Logvinov <user@blg.akavia.ru>
26 Feb 2006 01:12:54
Original commit files touched by this commit  2.25b_2
mnag search for other commits by this committer
- Unbroken
- Remove extra install of rc.d script
- Bump PORTREVISION

Approved by:    portmgr (kris)
26 Feb 2006 00:07:59
Original commit files touched by this commit  2.25b_1
kris search for other commits by this committer
BROKEN: Incomplete pkg-plist

Approved by:    portmgr (implicit)
20 Feb 2006 20:47:50
Original commit files touched by this commit  2.25b_1
dougb search for other commits by this committer
Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
24 Jan 2006 03:14:23
Original commit files touched by this commit  2.25b_1
edwin search for other commits by this committer
SHA256ify

Approved by: krion@
22 Jan 2006 02:58:25
Original commit files touched by this commit  2.25b_1
edwin search for other commits by this committer
Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry

Approved by:    krion@
PR:             ports/88711 (related)
30 May 2005 20:32:57
Original commit files touched by this commit  2.25b_1
anders search for other commits by this committer
Use RC_SUBR instead of thttpd_wrapper.
Use WWWOWN instead of nobody.
Clean up Makefile using SUB_FILES, SUB_LIST and PORTDOCS.
Etc.

PR:             72298
Submitted by:   Jeremy Chadwick <freebsd@jdc.parodius.com>, vs/flz
09 Jun 2004 06:16:07
Original commit files touched by this commit  2.25b
kris search for other commits by this committer
Don't remove www/ now that it is created by the system.
28 May 2004 12:48:38
Original commit files touched by this commit  2.25b
anders search for other commits by this committer
Update to 2.25b.
Use DOCSDIR.
31 Mar 2004 03:12:58
Original commit files touched by this commit  2.24
trevor search for other commits by this committer
SIZEify (maintainer timeout)
01 Feb 2004 04:51:54
Original commit files touched by this commit  2.24
silby search for other commits by this committer
Enable sendfile support by default for 5.2+ systems, as we now have alc's
improved sendfile and the ability to watch usage via netstat -m.
14 Nov 2003 18:32:49
Original commit files touched by this commit  2.24
silby search for other commits by this committer
Fix up mmc_unmap so that it does not try to search on the (unused)
addr field with USE_SENDFILE is defined.
28 Oct 2003 21:58:59
Original commit files touched by this commit  2.24
anders search for other commits by this committer
Update to 2.24.

Older versions of thttpd has a remote overflow.
Security advisory: http://www.texonet.com/advisories/TEXONET-20030908.txt

PR:             58648
19 Apr 2003 23:38:54
Original commit files touched by this commit  2.23
kris search for other commits by this committer
Install root:wheel directories mode 755, not 775
05 Apr 2003 07:36:57
Original commit files touched by this commit  2.23
kris search for other commits by this committer
Don't create a thttpd.sh.bak
Don't emit errors if directories under www/ cannot be removed
07 Mar 2003 06:12:57
Original commit files touched by this commit  2.23
ade search for other commits by this committer
Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
21 Oct 2002 00:29:02
Original commit files touched by this commit  2.23
anders search for other commits by this committer
Add Alfred Perlstein's sendfile patches, as an optional knob.
15 Oct 2002 21:59:06
Original commit files touched by this commit  2.23
anders search for other commits by this committer
Update to 2.23 beta 1.

PR:             43988
Submitted by:   Marc Recht <marc@informatik.uni-bremen.de>
13 Aug 2002 21:39:47
Original commit files touched by this commit  2.22
anders search for other commits by this committer
Fix startup-script for -current /bin/sh issues, and set PREFIX during
install.

Requested by:   obrien
15 Mar 2002 00:31:55
Original commit files touched by this commit  2.22
anders search for other commits by this committer
Master site updates: www.freenix.no => atreides.freenix.no for these
files.
29 Jan 2002 12:08:37
files touched by this commit
knu search for other commits by this committer
Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;   the ECHO
macro is set to "echo" by default, but it is set to "true" if   make(1) is
invoked with the -s option while ECHO_CMD is always set to   the echo command.  
 
24 Dec 2001 21:55:00
files touched by this commit
steve search for other commits by this committer
- Move DIST_SUBDIR up so this is portlint clean again.   - Install notes.html
from the right directory now that DIST_SUBDIR is set.    
24 Dec 2001 02:17:17
files touched by this commit
pat search for other commits by this committer
- PORTDOCS police   - DOCSDIR support to some   - Brush out some lint    
08 Dec 2001 17:14:55
files touched by this commit
anders search for other commits by this committer
Move thttpd's distfiles to a subdir, notes.html is too generic to stay   in
distfiles root.    
22 Nov 2001 00:10:56
files touched by this commit
anders search for other commits by this committer
Update thttpd to 2.22beta4. This fixes the recently announced off-by-one  
security issue, and eliminates the need for the kqueue -current fix.    
07 Oct 2001 03:03:45
files touched by this commit
petef search for other commits by this committer
Set maintainer to ports@FreeBSD.org    
24 Aug 2001 01:19:33
files touched by this commit
petef search for other commits by this committer
Fix kqueue support for -current    
01 May 2001 01:34:46
files touched by this commit
mharo search for other commits by this committer
Updates the port to the latest verion: 2.21b. Brings in interesting stuff like  
kqueue and accept filtering support.    
08 Apr 2001 23:17:01
files touched by this commit
steve search for other commits by this committer
Ignore the checksum on notes.html as it changes way too often.    
10 Mar 2001 05:11:55
files touched by this commit
kris search for other commits by this committer
Update checksum.  Author added a link to a banner ad in notes.html    
07 Feb 2001 14:32:28
files touched by this commit
obrien search for other commits by this committer
The notes.html documentation file changed.    
05 Feb 2001 15:33:58
files touched by this commit
olgeni search for other commits by this committer
Some spaces -> tabs for ports/www.    
30 Nov 2000 12:07:17
files touched by this commit
jedgar search for other commits by this committer
Update MD5 for notes.html due to minor updates    
03 Nov 2000 10:53:48
files touched by this commit
obrien search for other commits by this committer
Fix checksum.  This isn't my port, so I don't know why it was wrong.   Nor do I
have the file that the bad checksum was generated from.   Maybe it was never
right.    
31 Oct 2000 09:35:30
files touched by this commit
sobomax search for other commits by this committer
Update md5 checksum of installation instructions.    
30 Oct 2000 12:30:14
files touched by this commit
kevlo search for other commits by this committer
Update to 2.20b    
10 Oct 2000 06:09:53
files touched by this commit
kevlo search for other commits by this committer
Update to version 2.20    
08 Oct 2000 08:11:25
files touched by this commit
asami search for other commits by this committer
Convert category www to new layout.  
14 Jul 2000 00:47:54
files touched by this commit
steve search for other commits by this committer
- On startup, /etc/rc procedure stops when thttpd is installed.     *
${PREFIX}/etc/rc.d/thttpd.sh does not return.     * FIX: invoke thttpd_wrapper
as a background process.   - On shutdown, Message "No processes matching
``thttpd_wrapper''" is shown.     * thttpd_wrapper is actually a shell script,
not an executable.     * FIX: Record the pid of thttpd_wrapper to /var/run.    
* FIX: Use pid-file when killing the wrapper.    
13 Jul 2000 09:11:49
files touched by this commit
sobomax search for other commits by this committer
Update md5 checksum. Unfortunately there is no previous version on  
MASTER_SITE_BACKUP, so it is impossible to check what was changed.    
07 Jul 2000 20:32:26
files touched by this commit
steve search for other commits by this committer
Update to version 2.19.    
05 Jul 2000 13:37:07
files touched by this commit
tg search for other commits by this committer
As threatened on freebsd-ports: all startup scripts know about the two   options
`start' and `stop' now (unless I have forgotten any). This allows   us to call
the scripts from /etc/rc.shutdown with the correct option.    

Number of commits found: 67

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
cups-filtersJul 03
libressl*Jul 03
linux-c6-openssl*Jul 03
mingw32-openssl*Jul 03
openssl*Jul 03
cinepaint*Jul 01
darktable*Jul 01
dcraw*Jul 01
dcraw-m*Jul 01
exact-image*Jul 01
flphoto*Jul 01
freeimage*Jul 01
kodi*Jul 01
libraw*Jul 01
libxml2Jul 01

26 vulnerabilities affecting 52 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 24980
Broken 208
Deprecated 107
Ignore 505
Forbidden 1
Restricted 204
No CDROM 94
Vulnerable 31
Expired 1
Set to expire 95
Interactive 0
new 24 hours 7
new 48 hours15
new 7 days62
new fortnight115
new month196

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.