2015-01-09 16:37:42 +01:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2016-10-24 13:40:51 +02:00
|
|
|
.TH "NGHTTPD" "1" "Oct 24, 2016" "1.16.0" "nghttp2"
|
2014-02-15 08:46:11 +01:00
|
|
|
.SH NAME
|
2015-10-25 09:05:48 +01:00
|
|
|
nghttpd \- HTTP/2 server
|
2015-01-09 16:37:42 +01:00
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
2014-02-15 08:46:11 +01:00
|
|
|
.SH SYNOPSIS
|
2015-01-09 16:37:42 +01:00
|
|
|
.sp
|
|
|
|
\fBnghttpd\fP [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
|
2014-02-15 08:46:11 +01:00
|
|
|
.SH DESCRIPTION
|
2015-01-09 16:37:42 +01:00
|
|
|
.sp
|
2015-10-19 17:22:03 +02:00
|
|
|
HTTP/2 server
|
2015-01-09 16:37:42 +01:00
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B <PORT>
|
2014-05-16 16:54:09 +02:00
|
|
|
Specify listening port number.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B <PRIVATE_KEY>
|
2015-01-15 16:10:16 +01:00
|
|
|
Set path to server\(aqs private key. Required unless
|
|
|
|
\fI\%\-\-no\-tls\fP is specified.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B <CERT>
|
2015-01-15 16:10:16 +01:00
|
|
|
Set path to server\(aqs certificate. Required unless
|
|
|
|
\fI\%\-\-no\-tls\fP is specified.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
2015-02-01 10:33:24 +01:00
|
|
|
.SH OPTIONS
|
2015-01-09 16:37:42 +01:00
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-02-26 16:57:13 +01:00
|
|
|
.B \-a, \-\-address=<ADDR>
|
|
|
|
The address to bind to. If not specified the default IP
|
|
|
|
address determined by getaddrinfo is used.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-D, \-\-daemon
|
2015-04-17 16:14:23 +02:00
|
|
|
Run in a background. If \fI\%\-D\fP is used, the current working
|
2015-01-15 16:10:16 +01:00
|
|
|
directory is changed to \(aq\fI/\fP\(aq. Therefore if this option
|
|
|
|
is used, \fI\%\-d\fP option must be specified.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-V, \-\-verify\-client
|
2015-01-15 16:10:16 +01:00
|
|
|
The server sends a client certificate request. If the
|
|
|
|
client did not return a certificate, the handshake is
|
|
|
|
terminated. Currently, this option just requests a
|
|
|
|
client certificate and does not verify it.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-d, \-\-htdocs=<PATH>
|
2015-01-15 16:10:16 +01:00
|
|
|
Specify document root. If this option is not specified,
|
|
|
|
the document root is the current working directory.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-v, \-\-verbose
|
2015-01-15 16:10:16 +01:00
|
|
|
Print debug information such as reception/ transmission
|
|
|
|
of frames and name/value pairs.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-\-no\-tls
|
2014-02-15 08:46:11 +01:00
|
|
|
Disable SSL/TLS.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-15 16:10:16 +01:00
|
|
|
.B \-c, \-\-header\-table\-size=<SIZE>
|
2014-05-16 16:54:09 +02:00
|
|
|
Specify decoder header table size.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2016-09-18 15:44:19 +02:00
|
|
|
.B \-\-encoder\-header\-table\-size=<SIZE>
|
|
|
|
Specify encoder header table size. The decoder (client)
|
|
|
|
specifies the maximum dynamic table size it accepts.
|
|
|
|
Then the negotiated dynamic table size is the minimum of
|
|
|
|
this option value and the value which client specified.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-\-color
|
2014-02-15 08:46:11 +01:00
|
|
|
Force colored log output.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-02-15 08:46:11 +01:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-p, \-\-push=<PATH>=<PUSH_PATH,...>
|
2015-01-15 16:10:16 +01:00
|
|
|
Push resources <PUSH_PATH>s when <PATH> is requested.
|
|
|
|
This option can be used repeatedly to specify multiple
|
|
|
|
push configurations. <PATH> and <PUSH_PATH>s are
|
|
|
|
relative to document root. See \fI\%\-\-htdocs\fP option.
|
2015-04-17 16:14:23 +02:00
|
|
|
Example: \fI\%\-p\fP/=/foo.png \fI\%\-p\fP/doc=/bar.css
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-05-16 16:54:09 +02:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-b, \-\-padding=<N>
|
2015-01-15 16:10:16 +01:00
|
|
|
Add at most <N> bytes to a frame payload as padding.
|
|
|
|
Specify 0 to disable padding.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-05-16 16:54:09 +02:00
|
|
|
.TP
|
2015-05-07 13:55:10 +02:00
|
|
|
.B \-m, \-\-max\-concurrent\-streams=<N>
|
|
|
|
Set the maximum number of the concurrent streams in one
|
|
|
|
HTTP/2 session.
|
|
|
|
.sp
|
|
|
|
Default: \fB100\fP
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-01-15 16:10:16 +01:00
|
|
|
.B \-n, \-\-workers=<N>
|
2014-05-16 16:54:09 +02:00
|
|
|
Set the number of worker threads.
|
2015-01-09 16:37:42 +01:00
|
|
|
.sp
|
|
|
|
Default: \fB1\fP
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-05-16 16:54:09 +02:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-e, \-\-error\-gzip
|
2014-05-16 16:54:09 +02:00
|
|
|
Make error response gzipped.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-05-16 16:54:09 +02:00
|
|
|
.TP
|
2016-02-07 13:24:11 +01:00
|
|
|
.B \-w, \-\-window\-bits=<N>
|
|
|
|
Sets the stream level initial window size to 2**<N>\-1.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-W, \-\-connection\-window\-bits=<N>
|
|
|
|
Sets the connection level initial window size to
|
|
|
|
2**<N>\-1.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-\-dh\-param\-file=<PATH>
|
2015-01-15 16:10:16 +01:00
|
|
|
Path to file that contains DH parameters in PEM format.
|
|
|
|
Without this option, DHE cipher suites are not
|
|
|
|
available.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-07-08 17:38:43 +02:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-\-early\-response
|
2015-01-15 16:10:16 +01:00
|
|
|
Start sending response when request HEADERS is received,
|
|
|
|
rather than complete request is received.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-07-08 17:38:43 +02:00
|
|
|
.TP
|
2015-03-14 10:52:50 +01:00
|
|
|
.B \-\-trailer=<HEADER>
|
|
|
|
Add a trailer header to a response. <HEADER> must not
|
|
|
|
include pseudo header field (header field name starting
|
|
|
|
with \(aq:\(aq). The trailer is sent only if a response has
|
|
|
|
body part. Example: \fI\%\-\-trailer\fP \(aqfoo: bar\(aq.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-03-26 16:37:12 +01:00
|
|
|
.B \-\-hexdump
|
|
|
|
Display the incoming traffic in hexadecimal (Canonical
|
|
|
|
hex+ASCII display). If SSL/TLS is used, decrypted data
|
|
|
|
are used.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-05-12 17:44:37 +02:00
|
|
|
.B \-\-echo\-upload
|
|
|
|
Send back uploaded content if method is POST or PUT.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-11-12 15:14:45 +01:00
|
|
|
.B \-\-mime\-types\-file=<PATH>
|
|
|
|
Path to file that contains MIME media types and the
|
|
|
|
extensions that represent them.
|
|
|
|
.sp
|
|
|
|
Default: \fB/etc/mime.types\fP
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2016-01-11 08:23:32 +01:00
|
|
|
.B \-\-no\-content\-length
|
|
|
|
Don\(aqt send content\-length header field.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-\-version
|
2014-05-16 16:54:09 +02:00
|
|
|
Display version information and exit.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2014-05-16 16:54:09 +02:00
|
|
|
.TP
|
2015-01-09 16:37:42 +01:00
|
|
|
.B \-h, \-\-help
|
2014-05-16 16:54:09 +02:00
|
|
|
Display this help and exit.
|
2015-01-09 16:37:42 +01:00
|
|
|
.UNINDENT
|
2015-01-15 16:10:16 +01:00
|
|
|
.sp
|
|
|
|
The <SIZE> argument is an integer and an optional unit (e.g., 10K is
|
|
|
|
10 * 1024). Units are K, M and G (powers of 1024).
|
2015-01-09 16:37:42 +01:00
|
|
|
.SH SEE ALSO
|
|
|
|
.sp
|
2016-07-16 12:10:34 +02:00
|
|
|
\fBnghttp(1)\fP, \fBnghttpx(1)\fP, \fBh2load(1)\fP
|
2015-01-09 16:37:42 +01:00
|
|
|
.SH AUTHOR
|
|
|
|
Tatsuhiro Tsujikawa
|
|
|
|
.SH COPYRIGHT
|
2016-01-11 08:23:32 +01:00
|
|
|
2012, 2015, 2016, Tatsuhiro Tsujikawa
|
2015-01-09 16:37:42 +01:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|