<liclass="toctree-l2"><aclass="reference internal"href="package_README.html#client-server-and-proxy-programs">Client, Server and Proxy programs</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="nghttpx-howto.html#specifying-additional-ca-certificate">Specifying additional CA certificate</a></li>
<h2>DESCRIPTION<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>HTTP/2 experimental server</p>
<dlclass="option">
<dtid="cmdoption-nghttpd-arg-PORT">
<ttclass="descname">PORT</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-arg-PORT"title="Permalink to this definition">¶</a></dt>
<dd><p>Specify listening port number.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-arg-PRIVATE_KEY">
<ttclass="descname">PRIVATE_KEY</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-arg-PRIVATE_KEY"title="Permalink to this definition">¶</a></dt>
<dd><p>Set path to server’s private key. Required
unless <aclass="reference internal"href="#cmdoption-nghttpd--no-tls"><emclass="xref std std-option">--no-tls</em></a> is specified.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-arg-CERT">
<ttclass="descname">CERT</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-arg-CERT"title="Permalink to this definition">¶</a></dt>
<dd><p>Set path to server’s certificate. Required
unless <aclass="reference internal"href="#cmdoption-nghttpd--no-tls"><emclass="xref std std-option">--no-tls</em></a> is specified.</p>
</dd></dl>
</div>
<divclass="section"id="options">
<h2>OPTIONS<aclass="headerlink"href="#options"title="Permalink to this headline">¶</a></h2>
<dlclass="option">
<dtid="cmdoption-nghttpd-D">
<spanid="cmdoption-nghttpd--daemon"></span><ttclass="descname">-D</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--daemon</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-D"title="Permalink to this definition">¶</a></dt>
<dd><p>Run in a background. If <aclass="reference internal"href="#cmdoption-nghttpd-D"><emclass="xref std std-option">-D</em></a> is used, the current
working directory is changed to ‘/’. Therefore
if this option is used, <aclass="reference internal"href="#cmdoption-nghttpd-d"><emclass="xref std std-option">-d</em></a> option must be
specified.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-V">
<spanid="cmdoption-nghttpd--verify-client"></span><ttclass="descname">-V</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--verify-client</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-V"title="Permalink to this definition">¶</a></dt>
<dd><p>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.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-d">
<spanid="cmdoption-nghttpd--htdocs"></span><ttclass="descname">-d</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--htdocs</tt><ttclass="descclassname">=<PATH></tt><aclass="headerlink"href="#cmdoption-nghttpd-d"title="Permalink to this definition">¶</a></dt>
<dd><p>Specify document root. If this option is not
specified, the document root is the current
working directory.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-v">
<spanid="cmdoption-nghttpd--verbose"></span><ttclass="descname">-v</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--verbose</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-v"title="Permalink to this definition">¶</a></dt>
<dd><p>Print debug information such as reception/
transmission of frames and name/value pairs.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd--no-tls">
<ttclass="descname">--no-tls</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd--no-tls"title="Permalink to this definition">¶</a></dt>
<dd><p>Disable SSL/TLS.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-c">
<spanid="cmdoption-nghttpd--header-table-size"></span><ttclass="descname">-c</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--header-table-size</tt><ttclass="descclassname">=<N></tt><aclass="headerlink"href="#cmdoption-nghttpd-c"title="Permalink to this definition">¶</a></dt>
<dd><p>Specify decoder header table size.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd--color">
<ttclass="descname">--color</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd--color"title="Permalink to this definition">¶</a></dt>
<dd><p>Force colored log output.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-p">
<spanid="cmdoption-nghttpd--push"></span><ttclass="descname">-p</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--push</tt><ttclass="descclassname">=<PATH>=<PUSH_PATH,...></tt><aclass="headerlink"href="#cmdoption-nghttpd-p"title="Permalink to this definition">¶</a></dt>
<dd><p>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
<spanid="cmdoption-nghttpd--padding"></span><ttclass="descname">-b</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--padding</tt><ttclass="descclassname">=<N></tt><aclass="headerlink"href="#cmdoption-nghttpd-b"title="Permalink to this definition">¶</a></dt>
<dd><p>Add at most <N> bytes to a frame payload as
padding. Specify 0 to disable padding.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-n">
<spanid="cmdoption-nghttpd--workers"></span><ttclass="descname">-n</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--workers</tt><ttclass="descclassname">=<CORE></tt><aclass="headerlink"href="#cmdoption-nghttpd-n"title="Permalink to this definition">¶</a></dt>
<dd><p>Set the number of worker threads.
Default: 1</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-e">
<spanid="cmdoption-nghttpd--error-gzip"></span><ttclass="descname">-e</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--error-gzip</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-e"title="Permalink to this definition">¶</a></dt>
<dd><p>Make error response gzipped.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd--dh-param-file">
<ttclass="descname">--dh-param-file</tt><ttclass="descclassname">=<PATH></tt><aclass="headerlink"href="#cmdoption-nghttpd--dh-param-file"title="Permalink to this definition">¶</a></dt>
<dd><p>Path to file that contains DH parameters in PEM
format. Without this option, DHE cipher suites
are not available.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd--early-response">
<ttclass="descname">--early-response</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd--early-response"title="Permalink to this definition">¶</a></dt>
<dd><p>Start sending response when request HEADERS is
received, rather than complete request is
received.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd--version">
<ttclass="descname">--version</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd--version"title="Permalink to this definition">¶</a></dt>
<dd><p>Display version information and exit.</p>
</dd></dl>
<dlclass="option">
<dtid="cmdoption-nghttpd-h">
<spanid="cmdoption-nghttpd--help"></span><ttclass="descname">-h</tt><ttclass="descclassname"></tt><ttclass="descclassname">, </tt><ttclass="descname">--help</tt><ttclass="descclassname"></tt><aclass="headerlink"href="#cmdoption-nghttpd-h"title="Permalink to this definition">¶</a></dt>
<dd><p>Display this help and exit.</p>
</dd></dl>
</div>
<divclass="section"id="see-also">
<h2>SEE ALSO<aclass="headerlink"href="#see-also"title="Permalink to this headline">¶</a></h2>