2014-07-08 15:38:43 +00:00
|
|
|
|
2015-05-12 15:44:37 +00:00
|
|
|
.. GENERATED by help2rst.py. DO NOT EDIT DIRECTLY.
|
|
|
|
|
2015-04-17 14:14:23 +00:00
|
|
|
.. program:: nghttpd
|
|
|
|
|
2014-07-08 15:38:43 +00:00
|
|
|
nghttpd(1)
|
|
|
|
==========
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2015-01-09 15:37:42 +00:00
|
|
|
**nghttpd** [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2015-01-09 15:37:42 +00:00
|
|
|
|
2015-10-19 15:22:03 +00:00
|
|
|
HTTP/2 server
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-01-09 15:37:42 +00:00
|
|
|
.. describe:: <PORT>
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
Specify listening port number.
|
|
|
|
|
2015-01-09 15:37:42 +00:00
|
|
|
.. describe:: <PRIVATE_KEY>
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
|
|
|
|
Set path to server's private key. Required unless
|
|
|
|
:option:`--no-tls` is specified.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-01-09 15:37:42 +00:00
|
|
|
.. describe:: <CERT>
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Set path to server's certificate. Required unless
|
|
|
|
:option:`--no-tls` is specified.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-02-01 09:33:24 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-02-26 15:57:13 +00:00
|
|
|
.. option:: -a, --address=<ADDR>
|
|
|
|
|
|
|
|
The address to bind to. If not specified the default IP
|
|
|
|
address determined by getaddrinfo is used.
|
|
|
|
|
2014-07-08 15:38:43 +00:00
|
|
|
.. option:: -D, --daemon
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Run in a background. If :option:`-D` is used, the current working
|
|
|
|
directory is changed to '*/*'. Therefore if this option
|
|
|
|
is used, :option:`-d` option must be specified.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: -V, --verify-client
|
|
|
|
|
2015-01-15 15:10:16 +00: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.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: -d, --htdocs=<PATH>
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Specify document root. If this option is not specified,
|
|
|
|
the document root is the current working directory.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: -v, --verbose
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Print debug information such as reception/ transmission
|
|
|
|
of frames and name/value pairs.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: --no-tls
|
|
|
|
|
|
|
|
Disable SSL/TLS.
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
.. option:: -c, --header-table-size=<SIZE>
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
Specify decoder header table size.
|
|
|
|
|
|
|
|
.. option:: --color
|
|
|
|
|
|
|
|
Force colored log output.
|
|
|
|
|
|
|
|
.. option:: -p, --push=<PATH>=<PUSH_PATH,...>
|
|
|
|
|
2015-01-15 15:10:16 +00: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 :option:`--htdocs` option.
|
|
|
|
Example: :option:`-p`\/=/foo.png :option:`-p`\/doc=/bar.css
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: -b, --padding=<N>
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Add at most <N> bytes to a frame payload as padding.
|
|
|
|
Specify 0 to disable padding.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-05-07 11:55:10 +00:00
|
|
|
.. option:: -m, --max-concurrent-streams=<N>
|
|
|
|
|
|
|
|
Set the maximum number of the concurrent streams in one
|
|
|
|
HTTP/2 session.
|
|
|
|
|
|
|
|
Default: ``100``
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
.. option:: -n, --workers=<N>
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
Set the number of worker threads.
|
2015-01-09 15:37:42 +00:00
|
|
|
|
|
|
|
Default: ``1``
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: -e, --error-gzip
|
|
|
|
|
|
|
|
Make error response gzipped.
|
|
|
|
|
2016-02-07 12:24:11 +00:00
|
|
|
.. option:: -w, --window-bits=<N>
|
|
|
|
|
|
|
|
Sets the stream level initial window size to 2\*\*<N>-1.
|
|
|
|
|
|
|
|
.. option:: -W, --connection-window-bits=<N>
|
|
|
|
|
|
|
|
Sets the connection level initial window size to
|
|
|
|
2\*\*<N>-1.
|
|
|
|
|
2014-07-08 15:38:43 +00:00
|
|
|
.. option:: --dh-param-file=<PATH>
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Path to file that contains DH parameters in PEM format.
|
|
|
|
Without this option, DHE cipher suites are not
|
|
|
|
available.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
|
|
|
.. option:: --early-response
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
Start sending response when request HEADERS is received,
|
|
|
|
rather than complete request is received.
|
2014-07-08 15:38:43 +00:00
|
|
|
|
2015-03-14 09:52:50 +00:00
|
|
|
.. option:: --trailer=<HEADER>
|
|
|
|
|
|
|
|
Add a trailer header to a response. <HEADER> must not
|
|
|
|
include pseudo header field (header field name starting
|
|
|
|
with ':'). The trailer is sent only if a response has
|
|
|
|
body part. Example: :option:`--trailer` 'foo: bar'.
|
|
|
|
|
2015-03-26 15:37:12 +00:00
|
|
|
.. option:: --hexdump
|
|
|
|
|
|
|
|
Display the incoming traffic in hexadecimal (Canonical
|
|
|
|
hex+ASCII display). If SSL/TLS is used, decrypted data
|
|
|
|
are used.
|
|
|
|
|
2015-05-12 15:44:37 +00:00
|
|
|
.. option:: --echo-upload
|
|
|
|
|
|
|
|
Send back uploaded content if method is POST or PUT.
|
|
|
|
|
2015-11-12 14:14:45 +00:00
|
|
|
.. option:: --mime-types-file=<PATH>
|
|
|
|
|
|
|
|
Path to file that contains MIME media types and the
|
|
|
|
extensions that represent them.
|
|
|
|
|
|
|
|
Default: ``/etc/mime.types``
|
|
|
|
|
2016-01-11 07:23:32 +00:00
|
|
|
.. option:: --no-content-length
|
|
|
|
|
|
|
|
Don't send content-length header field.
|
|
|
|
|
2014-07-08 15:38:43 +00:00
|
|
|
.. option:: --version
|
|
|
|
|
|
|
|
Display version information and exit.
|
|
|
|
|
|
|
|
.. option:: -h, --help
|
|
|
|
|
|
|
|
Display this help and exit.
|
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
|
2015-03-30 15:23:12 +00:00
|
|
|
|
2015-01-15 15:10:16 +00:00
|
|
|
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).
|
|
|
|
|
2014-07-08 15:38:43 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2015-01-09 15:37:42 +00:00
|
|
|
:manpage:`nghttp(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|