2 .. GENERATED by help2rst.py. DO NOT EDIT DIRECTLY.
12 **nghttpd** [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
21 Specify listening port number.
23 .. describe:: <PRIVATE_KEY>
26 Set path to server's private key. Required unless
27 :option:`--no-tls` is specified.
31 Set path to server's certificate. Required unless
32 :option:`--no-tls` is specified.
37 .. option:: -a, --address=<ADDR>
39 The address to bind to. If not specified the default IP
40 address determined by getaddrinfo is used.
42 .. option:: -D, --daemon
44 Run in a background. If :option:`-D` is used, the current working
45 directory is changed to '*/*'. Therefore if this option
46 is used, :option:`-d` option must be specified.
48 .. option:: -V, --verify-client
50 The server sends a client certificate request. If the
51 client did not return a certificate, the handshake is
52 terminated. Currently, this option just requests a
53 client certificate and does not verify it.
55 .. option:: -d, --htdocs=<PATH>
57 Specify document root. If this option is not specified,
58 the document root is the current working directory.
60 .. option:: -v, --verbose
62 Print debug information such as reception/ transmission
63 of frames and name/value pairs.
69 .. option:: -c, --header-table-size=<SIZE>
71 Specify decoder header table size.
73 .. option:: --encoder-header-table-size=<SIZE>
75 Specify encoder header table size. The decoder (client)
76 specifies the maximum dynamic table size it accepts.
77 Then the negotiated dynamic table size is the minimum of
78 this option value and the value which client specified.
82 Force colored log output.
84 .. option:: -p, --push=<PATH>=<PUSH_PATH,...>
86 Push resources <PUSH_PATH>s when <PATH> is requested.
87 This option can be used repeatedly to specify multiple
88 push configurations. <PATH> and <PUSH_PATH>s are
89 relative to document root. See :option:`--htdocs` option.
90 Example: :option:`-p`\/=/foo.png :option:`-p`\/doc=/bar.css
92 .. option:: -b, --padding=<N>
94 Add at most <N> bytes to a frame payload as padding.
95 Specify 0 to disable padding.
97 .. option:: -m, --max-concurrent-streams=<N>
99 Set the maximum number of the concurrent streams in one
104 .. option:: -n, --workers=<N>
106 Set the number of worker threads.
110 .. option:: -e, --error-gzip
112 Make error response gzipped.
114 .. option:: -w, --window-bits=<N>
116 Sets the stream level initial window size to 2\*\*<N>-1.
118 .. option:: -W, --connection-window-bits=<N>
120 Sets the connection level initial window size to
123 .. option:: --dh-param-file=<PATH>
125 Path to file that contains DH parameters in PEM format.
126 Without this option, DHE cipher suites are not
129 .. option:: --early-response
131 Start sending response when request HEADERS is received,
132 rather than complete request is received.
134 .. option:: --trailer=<HEADER>
136 Add a trailer header to a response. <HEADER> must not
137 include pseudo header field (header field name starting
138 with ':'). The trailer is sent only if a response has
139 body part. Example: :option:`--trailer` 'foo: bar'.
141 .. option:: --hexdump
143 Display the incoming traffic in hexadecimal (Canonical
144 hex+ASCII display). If SSL/TLS is used, decrypted data
147 .. option:: --echo-upload
149 Send back uploaded content if method is POST or PUT.
151 .. option:: --mime-types-file=<PATH>
153 Path to file that contains MIME media types and the
154 extensions that represent them.
156 Default: ``/etc/mime.types``
158 .. option:: --no-content-length
160 Don't send content-length header field.
162 .. option:: --version
164 Display version information and exit.
166 .. option:: -h, --help
168 Display this help and exit.
172 The <SIZE> argument is an integer and an optional unit (e.g., 10K is
173 10 * 1024). Units are K, M and G (powers of 1024).
178 :manpage:`nghttp(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`