2009-11-22 21:40:26 +03:00
|
|
|
.\" $NetBSD: bozohttpd.8,v 1.16 2009/11/22 18:40:26 mbalmer Exp $
|
2007-10-16 06:47:12 +04:00
|
|
|
.\"
|
2009-05-23 06:26:03 +04:00
|
|
|
.\" $eterna: bozohttpd.8,v 1.91 2009/05/23 00:55:22 mrg Exp $
|
2007-10-16 05:14:01 +04:00
|
|
|
.\"
|
2009-04-18 11:28:24 +04:00
|
|
|
.\" Copyright (c) 1997-2009 Matthew R. Green
|
2007-10-16 05:14:01 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2009-05-23 06:26:03 +04:00
|
|
|
.Dd May 22, 2009
|
2007-10-16 06:47:12 +04:00
|
|
|
.Dt HTTPD 8
|
2009-03-11 16:39:33 +03:00
|
|
|
.Os
|
2007-10-16 05:14:01 +04:00
|
|
|
.Sh NAME
|
2007-10-16 06:47:12 +04:00
|
|
|
.Nm httpd
|
2007-10-16 05:14:01 +04:00
|
|
|
.Nd hyper text transfer protocol version 1.1 daemon
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2009-05-24 00:26:18 +04:00
|
|
|
.Op Fl befHnrsuVX
|
2007-10-16 05:14:01 +04:00
|
|
|
.Op Fl C Ar suffix cgihandler
|
|
|
|
.Op Fl c Ar cgibin
|
2009-05-24 00:26:18 +04:00
|
|
|
.Op Fl I Ar port
|
2007-10-16 05:14:01 +04:00
|
|
|
.Op Fl i Ar address
|
2009-05-24 00:26:18 +04:00
|
|
|
.Op Fl M Ar suffix type encoding encoding11
|
2007-10-16 05:14:01 +04:00
|
|
|
.Op Fl p Ar pubdir
|
2009-05-24 00:26:18 +04:00
|
|
|
.Op Fl S Ar server_software
|
2008-12-06 16:18:09 +03:00
|
|
|
.Op Fl t Ar chrootdir
|
2007-10-16 05:14:01 +04:00
|
|
|
.Op Fl v Ar virtualroot
|
|
|
|
.Op Fl x Ar index
|
|
|
|
.Op Fl Z Ar cert privkey
|
|
|
|
.Ar slashdir
|
|
|
|
.Op Ar myname
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
program reads a
|
|
|
|
.Em HTTP
|
|
|
|
request from the standard input, and sends a reply to the standard output.
|
|
|
|
Besides ~user translation and virtual hosting support (see below), all file
|
|
|
|
requests are from
|
|
|
|
.Ar slashdir
|
|
|
|
directory.
|
|
|
|
The server uses
|
|
|
|
.Ar myname
|
|
|
|
as its name, which defaults to the local hostname, obtained from
|
|
|
|
.Xr gethostname 3
|
|
|
|
(but see the
|
|
|
|
.Fl v
|
|
|
|
option for virtual hosting.)
|
|
|
|
.Nm
|
|
|
|
is designed to be small, simple and relatively featureless,
|
|
|
|
hopefully increasing its security.
|
2008-12-06 16:30:35 +03:00
|
|
|
.Ss OPTIONS
|
2007-10-16 05:14:01 +04:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width xxxcgibin
|
|
|
|
.It Fl b
|
|
|
|
This option enables daemon mode, where
|
|
|
|
.Nm
|
|
|
|
detaches from the current terminal, running in the background and
|
|
|
|
servicing HTTP requests.
|
|
|
|
.It Fl C Ar suffix cgihandler
|
2008-03-04 01:15:08 +03:00
|
|
|
This option adds a new CGI handler program for a particular file type.
|
2007-10-16 05:14:01 +04:00
|
|
|
The
|
|
|
|
.Ar suffix
|
|
|
|
should be any normal file suffix, and the
|
|
|
|
.Ar cgihandler
|
|
|
|
should be a full path to an interpreter.
|
|
|
|
This option is the only way to enable CGI programs that exist
|
|
|
|
outside of the cgibin directory to be executed.
|
|
|
|
Multiple
|
|
|
|
.Fl C
|
|
|
|
options may be passed.
|
|
|
|
.It Fl c Ar cgibin
|
|
|
|
This option enables the CGI/1.1 interface.
|
|
|
|
The
|
|
|
|
.Ar cgibin
|
|
|
|
directory is expected to contain the CGI programs to be used.
|
|
|
|
.Nm
|
|
|
|
looks for URL's in the form of
|
2008-12-06 16:30:35 +03:00
|
|
|
.Em /cgi-bin/\*[Lt]scriptname\*[Gt]
|
2007-10-16 05:14:01 +04:00
|
|
|
where
|
2009-05-23 06:26:03 +04:00
|
|
|
.Aq scriptname
|
2007-10-16 05:14:01 +04:00
|
|
|
is a valid CGI program in the
|
|
|
|
.Ar cgibin
|
|
|
|
directory.
|
|
|
|
In other words, all CGI URL's must begin with
|
|
|
|
.Em \%/cgi-bin/ .
|
|
|
|
Note that the CGI/1.1 interface is not available with
|
|
|
|
.Em ~user
|
|
|
|
translation.
|
|
|
|
.It Fl e
|
|
|
|
This option causes
|
|
|
|
.Nm
|
|
|
|
to not clear the environment when used with either the
|
|
|
|
.Fl t
|
|
|
|
or
|
|
|
|
.Fl U
|
|
|
|
options.
|
2009-05-23 06:26:03 +04:00
|
|
|
.It Fl f
|
|
|
|
This option stops the
|
|
|
|
.Fl b
|
|
|
|
flag from
|
|
|
|
.Nm
|
|
|
|
detaching from the tty and going into the background.
|
2007-10-16 05:14:01 +04:00
|
|
|
.It Fl H
|
|
|
|
This option causes directory index mode to hide files and directories
|
|
|
|
that start with a period, except for
|
|
|
|
.Pa .. .
|
|
|
|
Also see
|
|
|
|
.Fl X .
|
|
|
|
.It Fl I Ar port
|
|
|
|
This option is only valid with the
|
|
|
|
.Fl b
|
2008-12-06 16:18:09 +03:00
|
|
|
option.
|
|
|
|
It causes
|
2007-10-16 05:14:01 +04:00
|
|
|
.Ar port
|
|
|
|
to use used as the port to bind daemon mode.
|
|
|
|
The default is the
|
|
|
|
.Dq http
|
|
|
|
port.
|
|
|
|
.It Fl i Ar address
|
|
|
|
This option is only valid with the
|
|
|
|
.Fl b
|
2008-12-06 16:18:09 +03:00
|
|
|
option.
|
|
|
|
It causes
|
2007-10-16 05:14:01 +04:00
|
|
|
.Ar address
|
|
|
|
to use used as the address to bind daemon mode.
|
|
|
|
If otherwise unspecified, the address used to bind is derived from the
|
|
|
|
.Ar myname ,
|
|
|
|
which defaults to the name returned by
|
|
|
|
.Xr gethostname 3 .
|
2009-04-19 01:22:03 +04:00
|
|
|
Only the last
|
|
|
|
.Fl i
|
|
|
|
option is used.
|
2007-10-16 05:14:01 +04:00
|
|
|
.It Fl M Ar suffix type encoding encoding11
|
|
|
|
This option adds a new entry to the table that converts file suffixes to
|
|
|
|
content type and encoding.
|
|
|
|
This option takes four additional arguments containing
|
|
|
|
the file prefix, its
|
|
|
|
.Dq Content-Type ,
|
2008-12-06 16:30:35 +03:00
|
|
|
.Dq Content-Encoding ,
|
2007-10-16 05:14:01 +04:00
|
|
|
and
|
|
|
|
.Dq Content-Encoding
|
|
|
|
for HTTP/1.1 connections, respectively.
|
2008-12-06 16:30:35 +03:00
|
|
|
If any of these are a single dash
|
|
|
|
.Pq Dq - ,
|
|
|
|
the empty string is used instead.
|
2007-10-16 05:14:01 +04:00
|
|
|
Multiple
|
|
|
|
.Fl M
|
|
|
|
options may be passed.
|
|
|
|
.It Fl n
|
|
|
|
This option stops
|
|
|
|
.Nm
|
|
|
|
from doing IP address to name resolution of hosts for setting the
|
|
|
|
.Ev REMOTE_HOST
|
|
|
|
variable before running a CGI program.
|
|
|
|
This option has no effect without the
|
|
|
|
.Fl c
|
|
|
|
option.
|
|
|
|
.It Fl p Ar pubdir
|
|
|
|
This option changes the default user directory for
|
|
|
|
.Em /~user/
|
|
|
|
translations from
|
|
|
|
.Dq public_html
|
|
|
|
to
|
|
|
|
.Ar pubdir .
|
|
|
|
.It Fl r
|
|
|
|
This option forces pages besides the
|
|
|
|
.Dq index.html
|
|
|
|
(see the
|
|
|
|
.Fl X
|
|
|
|
option) page to require that the Referrer: header be present and
|
|
|
|
refer to this web server, otherwise a redirect to the
|
|
|
|
.Dq index.html
|
|
|
|
page will be returned instead.
|
|
|
|
.It Fl S Ar server_software
|
|
|
|
This option sets the internal server version to
|
|
|
|
.Ar server_software .
|
|
|
|
.It Fl s
|
|
|
|
This option forces logging to be set to stderr always.
|
|
|
|
.It Fl t Ar chrootdir
|
|
|
|
When this option is used,
|
|
|
|
.Nm
|
|
|
|
will chroot to the specified directory
|
|
|
|
before answering requests.
|
|
|
|
Every other path should be specified relative
|
|
|
|
to the new root, if this option is used.
|
|
|
|
Note that the current environment
|
|
|
|
is normally replaced with an empty environment with this option, unless the
|
|
|
|
.Fl e
|
|
|
|
option is also used.
|
|
|
|
.It Fl U Ar username
|
|
|
|
This option causes
|
|
|
|
.Nm
|
|
|
|
to switch to the user and the groups of
|
|
|
|
.Ar username
|
|
|
|
after initialization.
|
|
|
|
This option, like
|
|
|
|
.Fl t
|
|
|
|
above, causes
|
|
|
|
.Nm
|
|
|
|
to clear the environment unless the
|
|
|
|
.Fl e
|
|
|
|
option is given.
|
|
|
|
.It Fl u
|
|
|
|
This option enables the transformation of Uniform Resource Locators of
|
|
|
|
the form
|
|
|
|
.Em /~user/
|
2009-11-22 21:40:26 +03:00
|
|
|
into the directory
|
2007-10-16 05:14:01 +04:00
|
|
|
.Pa ~user/public_html
|
|
|
|
(but see the
|
|
|
|
.Fl p
|
|
|
|
option above).
|
|
|
|
.It Fl V
|
|
|
|
This option sets the default virtual host directory to
|
|
|
|
.Ar slashdir .
|
|
|
|
If no directory exists in
|
|
|
|
.Ar virtualroot
|
|
|
|
for the request, then
|
|
|
|
.Ar slashdir
|
|
|
|
will be used.
|
|
|
|
The default behaviour is to return 404 (Not Found.)
|
|
|
|
.It Fl v Ar virtualroot
|
|
|
|
This option enables virtual hosting support.
|
|
|
|
Directories in
|
|
|
|
.Ar virtualroot
|
|
|
|
will be searched for a matching virtual host name, when parsing
|
|
|
|
the HTML request.
|
|
|
|
If a matching name is found, it will be used
|
|
|
|
as both the server's real name,
|
|
|
|
.Op Ar myname ,
|
|
|
|
and as the
|
|
|
|
.Ar slashdir .
|
|
|
|
See the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section for an example of using this option.
|
|
|
|
.It Fl X
|
|
|
|
This option enables directory indexing.
|
|
|
|
A directory index will be generated only when the default file (i.e.
|
|
|
|
.Pa index.html
|
|
|
|
normally) is not present.
|
|
|
|
.It Fl x Ar index
|
|
|
|
This option changes the default file read for directories from
|
|
|
|
.Dq index.html
|
|
|
|
to
|
|
|
|
.Ar index .
|
|
|
|
.It Fl Z Ar certificate_path privatekey_path
|
|
|
|
This option sets the path to the server certificate file and the private key file
|
2008-12-06 16:18:09 +03:00
|
|
|
in pem format.
|
|
|
|
It also causes
|
2008-03-04 01:15:08 +03:00
|
|
|
.Nm
|
|
|
|
to start SSL mode.
|
2007-10-16 05:14:01 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that in
|
|
|
|
.Nm
|
|
|
|
versions 20031005 and prior that supported the
|
|
|
|
.Fl C
|
|
|
|
and
|
|
|
|
.Fl M
|
|
|
|
options, they took a single space-separated argument that was parsed.
|
|
|
|
since version 20040828, they take multiple options (2 in the case of
|
|
|
|
.Fl C
|
|
|
|
and 4 in the case of
|
|
|
|
.Fl M . )
|
2008-12-06 16:30:35 +03:00
|
|
|
.Ss INETD CONFIGURATION
|
2007-10-16 05:14:01 +04:00
|
|
|
As
|
|
|
|
.Nm
|
|
|
|
uses
|
|
|
|
.Xr inetd 8
|
|
|
|
by default to process incoming TCP connections for HTTP requests
|
|
|
|
(but see the
|
|
|
|
.Fl b
|
|
|
|
option),
|
|
|
|
.Nm
|
|
|
|
has little internal networking knowledge.
|
|
|
|
(Indeed, you can run it on the command line with little change of functionality.)
|
|
|
|
A typical
|
|
|
|
.Xr inetd.conf 5
|
|
|
|
entry would be:
|
|
|
|
.Bd -literal
|
2007-10-16 06:47:12 +04:00
|
|
|
http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd /var/www
|
|
|
|
http stream tcp6 nowait:600 _httpd /usr/libexec/httpd httpd /var/www
|
2007-10-16 05:14:01 +04:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
This would serve web pages from
|
|
|
|
.Pa /var/www
|
|
|
|
on both IPv4 and IPv6 ports.
|
|
|
|
The
|
|
|
|
.Em :600
|
|
|
|
changes the
|
|
|
|
requests per minute to 600, up from the
|
|
|
|
.Xr inetd 8
|
|
|
|
default of 40.
|
|
|
|
.Pp
|
|
|
|
Using the
|
|
|
|
.Nx
|
|
|
|
.Xr inetd 8 ,
|
|
|
|
you can provide multiple IP-address based HTTP servers by having multiple
|
|
|
|
listening ports with different configurations.
|
2008-12-06 16:30:35 +03:00
|
|
|
.Ss NOTES
|
2007-10-16 05:14:01 +04:00
|
|
|
This server supports the
|
|
|
|
.Em HTTP/0.9 ,
|
2008-12-06 16:30:35 +03:00
|
|
|
.Em HTTP/1.0 ,
|
2007-10-16 05:14:01 +04:00
|
|
|
and
|
|
|
|
.Em HTTP/1.1
|
2008-03-04 01:15:08 +03:00
|
|
|
standards.
|
|
|
|
Support for these protocols is very minimal and many optional features are
|
|
|
|
not supported.
|
2007-10-16 05:14:01 +04:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
can be compiled without CGI support (NO_CGIBIN_SUPPORT), user
|
|
|
|
transformations (NO_USER_SUPPORT), directory index support (NO_DIRINDEX_SUPPORT),
|
|
|
|
daemon mode support (NO_DAEMON_MODE), and dynamic MIME content
|
|
|
|
(NO_DYNAMIC_CONTENT), and SSL support (NO_SSL_SUPPORT) by defining the listed
|
|
|
|
macros when building
|
|
|
|
.Nm .
|
2008-12-06 16:30:35 +03:00
|
|
|
.Ss HTTP BASIC AUTHORISATION
|
2007-10-16 05:14:01 +04:00
|
|
|
.Nm
|
2007-10-16 06:47:12 +04:00
|
|
|
has support for HTTP Basic Authorisation.
|
2007-10-17 17:55:46 +04:00
|
|
|
If a file named
|
|
|
|
.Pa .htpasswd
|
|
|
|
exists in the directory of the current request,
|
|
|
|
.Nm
|
|
|
|
will restrict access to documents in that directory
|
|
|
|
using the RFC 2617 HTTP
|
|
|
|
.Dq Basic
|
|
|
|
authentication scheme.
|
|
|
|
.Pp
|
|
|
|
Note:
|
|
|
|
This does not recursively protect any sub-directories.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Pa .htpasswd
|
|
|
|
file contains lines delimited with a colon containing
|
|
|
|
usernames and passwords hashed with
|
|
|
|
.Xr crypt 3 ,
|
|
|
|
for example:
|
|
|
|
.Bd -literal
|
2008-12-06 16:18:09 +03:00
|
|
|
heather:$1$pZWI4tH/$DzDPl63i6VvVRv2lJNV7k1
|
2007-10-17 17:55:46 +04:00
|
|
|
jeremy:A.xewbx2DpQ8I
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
On
|
|
|
|
.Nx ,
|
|
|
|
the
|
|
|
|
.Xr pwhash 1
|
|
|
|
utility may be used to generate hashed passwords.
|
2008-03-04 01:15:08 +03:00
|
|
|
.Pp
|
2008-12-06 16:18:09 +03:00
|
|
|
While
|
2008-03-04 01:15:08 +03:00
|
|
|
.Nm
|
|
|
|
distributed with
|
|
|
|
.Nx
|
|
|
|
has support for HTTP Basic Authorisation enabled by default,
|
2009-04-18 11:28:24 +04:00
|
|
|
in the portable distribution it is excluded.
|
2008-03-04 01:15:08 +03:00
|
|
|
Compile
|
|
|
|
.Nm
|
|
|
|
with
|
|
|
|
.Dq -DDO_HTPASSWD
|
2008-12-06 16:18:09 +03:00
|
|
|
on the compiler command line to enable this support.
|
2009-05-23 06:26:03 +04:00
|
|
|
It may require linking with the crypt library, using
|
2008-03-04 01:15:08 +03:00
|
|
|
.Dq -lcrypt .
|
2008-12-06 16:30:35 +03:00
|
|
|
.Ss SSL SUPPORT
|
2007-10-16 05:14:01 +04:00
|
|
|
.Nm
|
|
|
|
has support for SSLv2, SSLv3, and TLSv1 protocols that is included by
|
2008-12-06 16:18:09 +03:00
|
|
|
default.
|
|
|
|
It requires linking with the crypto and ssl library, using
|
2007-10-16 05:14:01 +04:00
|
|
|
.Dq -lcrypto -lssl .
|
|
|
|
To disable SSL SUPPORT compile
|
|
|
|
.Nm
|
|
|
|
with
|
|
|
|
.Dq -DNO_SSL_SUPPORT
|
|
|
|
on the compiler command line.
|
2008-12-06 17:17:43 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Nm
|
|
|
|
looks for a couple of special files in directories that allow certain features
|
|
|
|
to be provided on a per-directory basis.
|
|
|
|
In addition to the
|
|
|
|
.Pa .htpasswd
|
|
|
|
used by HTTP basic authorisation,
|
|
|
|
if a
|
|
|
|
.Pa .bzdirect
|
|
|
|
file is found (contents are irrelevant)
|
|
|
|
.Nm
|
|
|
|
will allow direct access even with the
|
|
|
|
.Fl r
|
|
|
|
option.
|
|
|
|
If a
|
|
|
|
.Pa .bzredirect
|
|
|
|
symbolic link is found,
|
|
|
|
.Nm
|
|
|
|
will perform a smart redirect to the target of this symlink.
|
|
|
|
The target is assumed to live on the same server.
|
|
|
|
If a
|
|
|
|
.Pa .bzabsredirect
|
|
|
|
symbolic link is found,
|
|
|
|
.Nm
|
|
|
|
will redirect to the absolute url pointed to by this symlink.
|
|
|
|
This is useful to redirect to different servers.
|
|
|
|
.Sh EXAMPLES
|
|
|
|
To configure set of virtual hosts, one would use an
|
|
|
|
.Xr inetd.conf 5
|
|
|
|
entry like:
|
|
|
|
.Bd -literal
|
|
|
|
http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd -v /var/vroot /var/www
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
and inside
|
|
|
|
.Pa /var/vroot
|
|
|
|
create a directory (or a symlink to a directory) with the same name as
|
|
|
|
the virtual host, for each virtual host.
|
|
|
|
Lookups for these names are done in a case-insensitive manner.
|
|
|
|
.Pp
|
|
|
|
To use
|
|
|
|
.Nm
|
|
|
|
with PHP, one must use the
|
|
|
|
.Fl C
|
|
|
|
option to specify a CGI handler for a particular file type.
|
|
|
|
Typically this, this will be like:
|
|
|
|
.Bd -literal
|
|
|
|
httpd -C .php /usr/pkg/bin/php /var/www
|
|
|
|
.Ed
|
2007-10-16 05:14:01 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr inetd.conf 5 ,
|
|
|
|
.Xr inetd 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2009-04-18 11:28:24 +04:00
|
|
|
program is actually called
|
|
|
|
.Dq bozohttpd .
|
|
|
|
It was first written in perl, based on another perl http server
|
2007-10-16 05:14:01 +04:00
|
|
|
called
|
|
|
|
.Dq tinyhttpd .
|
|
|
|
It was then rewritten from scratch in perl, and then once again in C.
|
2009-04-18 16:35:51 +04:00
|
|
|
From
|
2007-10-16 06:47:12 +04:00
|
|
|
.Dq bozohttpd
|
2009-04-18 11:28:24 +04:00
|
|
|
version 20060517, it has been integrated into
|
|
|
|
.Nx .
|
2007-10-16 05:14:01 +04:00
|
|
|
The focus has always been simplicity and security, with minimal features
|
|
|
|
and regular code audits.
|
2008-03-04 01:15:08 +03:00
|
|
|
This manual documents
|
|
|
|
.Nm
|
2009-05-23 06:26:03 +04:00
|
|
|
version 20090522.
|
2007-10-16 05:14:01 +04:00
|
|
|
.Sh AUTHORS
|
|
|
|
.Nm
|
|
|
|
was written by Matthew R. Green
|
|
|
|
.Aq mrg@eterna.com.au .
|
|
|
|
.Pp
|
|
|
|
The large list of contributors includes:
|
|
|
|
.Bl -dash
|
|
|
|
.It
|
2008-03-04 01:15:08 +03:00
|
|
|
Arnaud Lacombe
|
2009-04-17 01:26:57 +04:00
|
|
|
.Aq alc@netbsd.org
|
2008-03-04 01:15:08 +03:00
|
|
|
provided some clean up for memory leaks
|
|
|
|
.It
|
|
|
|
Christoph Badura
|
|
|
|
.Aq bad@bsd.de
|
|
|
|
provided Range: header support
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
Julian Coleman
|
|
|
|
.Aq jdc@coris.org.uk
|
|
|
|
provided an IPv6 bugfix
|
|
|
|
.It
|
|
|
|
Chuck Cranor
|
|
|
|
.Aq chuck@research.att.com
|
|
|
|
provided cgi-bin support fixes, and more
|
|
|
|
.It
|
2009-04-18 11:28:24 +04:00
|
|
|
DEGROOTE Arnaud
|
|
|
|
.Aq degroote@netbsd.org
|
|
|
|
provided a fix for daemon mode
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
Andrew Doran
|
|
|
|
.Aq ad@netbsd.org
|
|
|
|
provided directory indexing support
|
|
|
|
.It
|
|
|
|
Per Ekman
|
|
|
|
.Aq pek@pdc.kth.se
|
|
|
|
provided a fix for a minor (non-security) buffer overflow condition
|
|
|
|
.It
|
|
|
|
Jun-ichiro itojun Hagino, KAME
|
|
|
|
.Aq itojun@iijlab.net
|
|
|
|
provided initial IPv6 support
|
|
|
|
.It
|
|
|
|
Martin Husemann
|
|
|
|
.Aq martin@netbsd.org
|
|
|
|
provided .bzabsredirect support
|
|
|
|
.It
|
2009-04-18 11:28:24 +04:00
|
|
|
Arto Huusko
|
|
|
|
.Aq arto.huusko@pp2.inet.fi
|
|
|
|
provided fixes cgi-bin
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
Roland Illig
|
|
|
|
.Aq roland.illig@gmx.de
|
|
|
|
provided some off-by-one fixes
|
|
|
|
.It
|
2009-04-18 11:28:24 +04:00
|
|
|
Zak Johnson
|
|
|
|
.Aq zakj@nox.cx
|
|
|
|
provided cgi-bin enhancements
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
Nicolas Jombart
|
|
|
|
.Aq ecu@ipv42.net
|
|
|
|
provided fixes for HTTP basic authorisation support
|
|
|
|
.It
|
|
|
|
Thomas Klausner
|
|
|
|
.Aq wiz@danbala.ifoer.tuwien.ac.at
|
|
|
|
provided many fixes and enhancements for the man page
|
|
|
|
.It
|
|
|
|
Johnny Lam
|
|
|
|
.Aq jlam@netbsd.org
|
|
|
|
provided man page fixes
|
|
|
|
.It
|
|
|
|
Luke Mewburn
|
|
|
|
.Aq lukem@netbsd.org
|
2008-12-06 16:30:35 +03:00
|
|
|
provided many various fixes, including cgi-bin fixes and enhancements,
|
2007-10-16 05:14:01 +04:00
|
|
|
HTTP basic authorisation support and much code clean up
|
|
|
|
.It
|
2008-09-13 18:00:34 +04:00
|
|
|
Jeremy C. Reed
|
2008-03-04 01:15:08 +03:00
|
|
|
.Aq reed@netbsd.org
|
|
|
|
provided several clean up fixes, and man page updates
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
Scott Reynolds
|
|
|
|
.Aq scottr@netbsd.org
|
|
|
|
provided various fixes
|
|
|
|
.It
|
|
|
|
Tyler Retzlaff
|
|
|
|
.Aq rtr@eterna.com.au
|
2008-03-04 01:15:08 +03:00
|
|
|
provided SSL support, cgi-bin fixes and much other random other stuff
|
2007-10-16 05:14:01 +04:00
|
|
|
.It
|
|
|
|
Steve Rumble
|
|
|
|
.Aq rumble@ephemeral.org
|
|
|
|
provided the
|
|
|
|
.Fl V
|
|
|
|
option.
|
|
|
|
.It
|
2009-04-18 11:28:24 +04:00
|
|
|
Joerg Sonnenberger
|
|
|
|
.Aq joerg@netbsd.org
|
|
|
|
implemented If-Modified-Since support
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
ISIHARA Takanori
|
|
|
|
.Aq ishit@oak.dti.ne.jp
|
|
|
|
provided a man page fix
|
|
|
|
.It
|
2009-04-18 11:28:24 +04:00
|
|
|
Holger Weiss
|
|
|
|
.Aq holger@CIS.FU-Berlin.DE
|
|
|
|
provided http authorisation fixes
|
|
|
|
.It
|
2007-10-16 05:14:01 +04:00
|
|
|
.Aq xs@kittenz.org
|
|
|
|
provided chroot and change-to-user support, and other various fixes
|
2009-04-18 11:28:24 +04:00
|
|
|
.It
|
|
|
|
Coyote Point provided various CGI fixes
|
2007-10-16 05:14:01 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
There are probably others I have forgotten (let me know if you care)
|
2009-04-18 11:28:24 +04:00
|
|
|
.Pp
|
|
|
|
Please send all updates to
|
|
|
|
.Nm
|
|
|
|
to
|
|
|
|
.Aq mrg@eterna.com.au
|
|
|
|
for inclusion in future releaases.
|
2007-10-16 05:14:01 +04:00
|
|
|
.Sh BUGS
|
|
|
|
.Nm
|
|
|
|
does not handled HTTP/1.1 chunked input from the client yet.
|