8 **nghttpd** [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
13 HTTP/2 experimental server
17 Specify listening port number.
19 .. describe:: <PRIVATE_KEY>
22 Set path to server's private key. Required unless
23 :option:`--no-tls` is specified.
27 Set path to server's certificate. Required unless
28 :option:`--no-tls` is specified.
33 .. option:: -D, --daemon
35 Run in a background. If :option:`-D` is used, the current working
36 directory is changed to '*/*'. Therefore if this option
37 is used, :option:`-d` option must be specified.
39 .. option:: -V, --verify-client
41 The server sends a client certificate request. If the
42 client did not return a certificate, the handshake is
43 terminated. Currently, this option just requests a
44 client certificate and does not verify it.
46 .. option:: -d, --htdocs=<PATH>
48 Specify document root. If this option is not specified,
49 the document root is the current working directory.
51 .. option:: -v, --verbose
53 Print debug information such as reception/ transmission
54 of frames and name/value pairs.
60 .. option:: -c, --header-table-size=<SIZE>
62 Specify decoder header table size.
66 Force colored log output.
68 .. option:: -p, --push=<PATH>=<PUSH_PATH,...>
70 Push resources <PUSH_PATH>s when <PATH> is requested.
71 This option can be used repeatedly to specify multiple
72 push configurations. <PATH> and <PUSH_PATH>s are
73 relative to document root. See :option:`--htdocs` option.
74 Example: :option:`-p`\/=/foo.png :option:`-p`\/doc=/bar.css
76 .. option:: -b, --padding=<N>
78 Add at most <N> bytes to a frame payload as padding.
79 Specify 0 to disable padding.
81 .. option:: -n, --workers=<N>
83 Set the number of worker threads.
87 .. option:: -e, --error-gzip
89 Make error response gzipped.
91 .. option:: --dh-param-file=<PATH>
93 Path to file that contains DH parameters in PEM format.
94 Without this option, DHE cipher suites are not
97 .. option:: --early-response
99 Start sending response when request HEADERS is received,
100 rather than complete request is received.
102 .. option:: --version
104 Display version information and exit.
106 .. option:: -h, --help
108 Display this help and exit.
111 The <SIZE> argument is an integer and an optional unit (e.g., 10K is
112 10 * 1024). Units are K, M and G (powers of 1024).
117 :manpage:`nghttp(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`