Produce man pages using sphinx
Previously to create manual page for bundled programs, we use help2man to create man page from program's help output. Then our man2rst.py script converts man page to rst document. Sphinx generates html from rst documents. Now help2rst.py produces rst document from programs output. We use Sphinx solely to produce both man pages and html files.
This commit is contained in:
parent
b2411d949e
commit
a3dcf1e004
|
@ -176,7 +176,7 @@ text:
|
||||||
@echo
|
@echo
|
||||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||||
|
|
||||||
man:
|
man: apiref.rst
|
||||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||||
@echo
|
@echo
|
||||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||||
|
|
|
@ -64,7 +64,7 @@ master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'nghttp2'
|
project = u'nghttp2'
|
||||||
copyright = u'2012, 2014, Tatsuhiro Tsujikawa'
|
copyright = u'2012, 2015, Tatsuhiro Tsujikawa'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
@ -242,6 +242,12 @@ latex_documents = [
|
||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'nghttp2', u'nghttp2 Documentation',
|
('nghttp.1', 'nghttp', u'HTTP/2 experimental client',
|
||||||
|
[u'Tatsuhiro Tsujikawa'], 1),
|
||||||
|
('nghttpd.1', 'nghttpd', u'HTTP/2 experimental server',
|
||||||
|
[u'Tatsuhiro Tsujikawa'], 1),
|
||||||
|
('nghttpx.1', 'nghttpx', u'HTTP/2 experimental proxy',
|
||||||
|
[u'Tatsuhiro Tsujikawa'], 1),
|
||||||
|
('h2load.1', 'h2load', u'HTTP/2 benchmarking tool',
|
||||||
[u'Tatsuhiro Tsujikawa'], 1)
|
[u'Tatsuhiro Tsujikawa'], 1)
|
||||||
]
|
]
|
||||||
|
|
125
doc/h2load.1
125
doc/h2load.1
|
@ -1,14 +1,44 @@
|
||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4.
|
.\" Man page generated from reStructuredText.
|
||||||
.TH H2LOAD "1" "January 2015" "h2load nghttp2/0.7.0" "User Commands"
|
.
|
||||||
|
.TH "H2LOAD" "1" "January 10, 2015" "0.7.1-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
h2load \- HTTP/2 benchmarking tool
|
h2load \- HTTP/2 benchmarking tool
|
||||||
|
.
|
||||||
|
.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
|
||||||
|
..
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B h2load
|
.sp
|
||||||
[\fI\,OPTIONS\/\fR]... [\fI\,URI\/\fR]...
|
\fBh2load\fP [OPTIONS]... [URI]...
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.sp
|
||||||
benchmarking tool for HTTP/2 and SPDY server
|
benchmarking tool for HTTP/2 and SPDY server
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<URI>
|
.B <URI>
|
||||||
Specify URI to access. Multiple URIs can be
|
Specify URI to access. Multiple URIs can be
|
||||||
specified. URIs are used in this order for each
|
specified. URIs are used in this order for each
|
||||||
client. All URIs are used, then first URI is
|
client. All URIs are used, then first URI is
|
||||||
|
@ -16,60 +46,101 @@ used and then 2nd URI, and so on. The scheme,
|
||||||
host and port in the subsequent URIs, if present,
|
host and port in the subsequent URIs, if present,
|
||||||
are ignored. Those in the first URI are used
|
are ignored. Those in the first URI are used
|
||||||
solely.
|
solely.
|
||||||
.SH OPTIONS
|
.UNINDENT
|
||||||
.HP
|
.SH OPTIONS:
|
||||||
\fB\-n\fR, \fB\-\-requests=\fR<N> Number of requests. Default: 1
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-c\fR, \fB\-\-clients=\fR<N>
|
.B \-n, \-\-requests=<N>
|
||||||
Number of concurrent clients. Default: 1
|
Number of requests.
|
||||||
|
.sp
|
||||||
|
Default: \fB1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-t\fR, \fB\-\-threads=\fR<N>
|
.B \-c, \-\-clients=<N>
|
||||||
Number of native threads. Default: 1
|
Number of concurrent clients.
|
||||||
|
.sp
|
||||||
|
Default: \fB1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-i\fR, \fB\-\-input\-file=\fR<FILE>
|
.B \-t, \-\-threads=<N>
|
||||||
|
Number of native threads.
|
||||||
|
.sp
|
||||||
|
Default: \fB1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-i, \-\-input\-file=<FILE>
|
||||||
Path of a file with multiple URIs are seperated
|
Path of a file with multiple URIs are seperated
|
||||||
by EOLs. This option will disable URIs getting
|
by EOLs. This option will disable URIs getting
|
||||||
from command\-line. If '\-' is given as <FILE>,
|
from command\-line. If \(aq\-\(aq is given as <FILE>,
|
||||||
URIs will be read from stdin. URIs are used in
|
URIs will be read from stdin. URIs are used in
|
||||||
this order for each client. All URIs are used,
|
this order for each client. All URIs are used,
|
||||||
then first URI is used and then 2nd URI, and so
|
then first URI is used and then 2nd URI, and so
|
||||||
on. The scheme, host and port in the subsequent
|
on. The scheme, host and port in the subsequent
|
||||||
URIs, if present, are ignored. Those in the
|
URIs, if present, are ignored. Those in the
|
||||||
first URI are used solely.
|
first URI are used solely.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-m\fR, \fB\-\-max\-concurrent\-streams=\fR(auto|<N>)
|
.B \-m, \-\-max\-concurrent\-streams=(auto|<N>)
|
||||||
Max concurrent streams to issue per session. If
|
Max concurrent streams to issue per session. If
|
||||||
"auto" is given, the number of given URIs is
|
"auto" is given, the number of given URIs is
|
||||||
used. Default: auto
|
used.
|
||||||
|
.sp
|
||||||
|
Default: \fBauto\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-w\fR, \fB\-\-window\-bits=\fR<N>
|
.B \-w, \-\-window\-bits=<N>
|
||||||
Sets the stream level initial window size to
|
Sets the stream level initial window size to
|
||||||
(2**<N>)\-1. For SPDY, 2**<N> is used instead.
|
(2**<N>)\-1. For SPDY, 2**<N> is used instead.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR, \fB\-\-connection\-window\-bits=\fR<N>
|
.B \-W, \-\-connection\-window\-bits=<N>
|
||||||
Sets the connection level initial window size to
|
Sets the connection level initial window size to
|
||||||
(2**<N>)\-1. For SPDY, if <N> is strictly less
|
(2**<N>)\-1. For SPDY, if <N> is strictly less
|
||||||
than 16, this option is ignored. Otherwise
|
than 16, this option is ignored. Otherwise
|
||||||
2**<N> is used for SPDY.
|
2**<N> is used for SPDY.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-H\fR, \fB\-\-header=\fR<HEADER>
|
.B \-H, \-\-header=<HEADER>
|
||||||
Add/Override a header to the requests.
|
Add/Override a header to the requests.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-p\fR, \fB\-\-no\-tls\-proto=\fR<PROTOID>
|
.B \-p, \-\-no\-tls\-proto=<PROTOID>
|
||||||
Specify ALPN identifier of the protocol to be
|
Specify ALPN identifier of the protocol to be
|
||||||
used when accessing http URI without SSL/TLS.
|
used when accessing http URI without SSL/TLS.
|
||||||
Available protocols: spdy/2, spdy/3, spdy/3.1 and
|
Available protocols: spdy/2, spdy/3, spdy/3.1 and
|
||||||
h2c\-14
|
h2c\-14
|
||||||
Default: h2c\-14
|
.sp
|
||||||
|
Default: \fBh2c\-14\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR, \fB\-\-verbose\fR
|
.B \-v, \-\-verbose
|
||||||
Output debug information.
|
Output debug information.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-version\fR
|
.B \-\-version
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-h\fR, \fB\-\-help\fR
|
.B \-h, \-\-help
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
.SH "SEE ALSO"
|
.UNINDENT
|
||||||
|
.SH SEE ALSO
|
||||||
nghttp(1), nghttpd(1), nghttpx(1)
|
.sp
|
||||||
|
\fInghttp(1)\fP, \fInghttpd(1)\fP, \fInghttpx(1)\fP
|
||||||
|
.SH AUTHOR
|
||||||
|
Tatsuhiro Tsujikawa
|
||||||
|
.SH COPYRIGHT
|
||||||
|
2012, 2014, Tatsuhiro Tsujikawa
|
||||||
|
.\" Generated by docutils manpage writer.
|
||||||
|
.
|
||||||
|
|
|
@ -1,23 +1,18 @@
|
||||||
.. DO NOT MODIFY THIS FILE! It was generated by man2rst.py
|
|
||||||
|
|
||||||
.. program:: h2load
|
|
||||||
|
|
||||||
h2load(1)
|
h2load(1)
|
||||||
=========
|
=========
|
||||||
|
|
||||||
NAME
|
|
||||||
----
|
|
||||||
h2load - HTTP/2 benchmarking tool
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**h2load** [OPTIONS]... [URI]...
|
**h2load** [OPTIONS]... [URI]...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
benchmarking tool for HTTP/2 and SPDY server
|
benchmarking tool for HTTP/2 and SPDY server
|
||||||
|
|
||||||
.. option:: URI
|
.. describe:: <URI>
|
||||||
|
|
||||||
Specify URI to access. Multiple URIs can be
|
Specify URI to access. Multiple URIs can be
|
||||||
specified. URIs are used in this order for each
|
specified. URIs are used in this order for each
|
||||||
|
@ -27,26 +22,29 @@ benchmarking tool for HTTP/2 and SPDY server
|
||||||
are ignored. Those in the first URI are used
|
are ignored. Those in the first URI are used
|
||||||
solely.
|
solely.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS:
|
||||||
-------
|
--------
|
||||||
|
|
||||||
.. option:: -n, --requests=<N>
|
.. option:: -n, --requests=<N>
|
||||||
|
|
||||||
Number of requests. Default: 1
|
Number of requests.
|
||||||
|
|
||||||
|
Default: ``1``
|
||||||
|
|
||||||
.. option:: -c, --clients=<N>
|
.. option:: -c, --clients=<N>
|
||||||
|
|
||||||
|
Number of concurrent clients.
|
||||||
|
|
||||||
Number of concurrent clients. Default: 1
|
Default: ``1``
|
||||||
|
|
||||||
.. option:: -t, --threads=<N>
|
.. option:: -t, --threads=<N>
|
||||||
|
|
||||||
|
Number of native threads.
|
||||||
|
|
||||||
Number of native threads. Default: 1
|
Default: ``1``
|
||||||
|
|
||||||
.. option:: -i, --input-file=<FILE>
|
.. option:: -i, --input-file=<FILE>
|
||||||
|
|
||||||
|
|
||||||
Path of a file with multiple URIs are seperated
|
Path of a file with multiple URIs are seperated
|
||||||
by EOLs. This option will disable URIs getting
|
by EOLs. This option will disable URIs getting
|
||||||
from command-line. If '-' is given as <FILE>,
|
from command-line. If '-' is given as <FILE>,
|
||||||
|
@ -59,55 +57,50 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -m, --max-concurrent-streams=(auto|<N>)
|
.. option:: -m, --max-concurrent-streams=(auto|<N>)
|
||||||
|
|
||||||
|
|
||||||
Max concurrent streams to issue per session. If
|
Max concurrent streams to issue per session. If
|
||||||
"auto" is given, the number of given URIs is
|
"auto" is given, the number of given URIs is
|
||||||
used. Default: auto
|
used.
|
||||||
|
|
||||||
|
Default: ``auto``
|
||||||
|
|
||||||
.. option:: -w, --window-bits=<N>
|
.. option:: -w, --window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the stream level initial window size to
|
Sets the stream level initial window size to
|
||||||
(2\*\*<N>)-1. For SPDY, 2\*\*<N> is used instead.
|
(2**<N>)-1. For SPDY, 2\*\*<N> is used instead.
|
||||||
|
|
||||||
.. option:: -W, --connection-window-bits=<N>
|
.. option:: -W, --connection-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the connection level initial window size to
|
Sets the connection level initial window size to
|
||||||
(2\*\*<N>)-1. For SPDY, if <N> is strictly less
|
(2**<N>)-1. For SPDY, if <N> is strictly less
|
||||||
than 16, this option is ignored. Otherwise
|
than 16, this option is ignored. Otherwise
|
||||||
2\*\*<N> is used for SPDY.
|
2**<N> is used for SPDY.
|
||||||
|
|
||||||
.. option:: -H, --header=<HEADER>
|
.. option:: -H, --header=<HEADER>
|
||||||
|
|
||||||
|
|
||||||
Add/Override a header to the requests.
|
Add/Override a header to the requests.
|
||||||
|
|
||||||
.. option:: -p, --no-tls-proto=<PROTOID>
|
.. option:: -p, --no-tls-proto=<PROTOID>
|
||||||
|
|
||||||
|
|
||||||
Specify ALPN identifier of the protocol to be
|
Specify ALPN identifier of the protocol to be
|
||||||
used when accessing http URI without SSL/TLS.
|
used when accessing http URI without SSL/TLS.
|
||||||
Available protocols: spdy/2, spdy/3, spdy/3.1 and
|
Available protocols: spdy/2, spdy/3, spdy/3.1 and
|
||||||
h2c-14
|
h2c-14
|
||||||
Default: h2c-14
|
|
||||||
|
Default: ``h2c-14``
|
||||||
|
|
||||||
.. option:: -v, --verbose
|
.. option:: -v, --verbose
|
||||||
|
|
||||||
|
|
||||||
Output debug information.
|
Output debug information.
|
||||||
|
|
||||||
.. option:: --version
|
.. option:: --version
|
||||||
|
|
||||||
|
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
|
||||||
.. option:: -h, --help
|
.. option:: -h, --help
|
||||||
|
|
||||||
|
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
--------
|
--------
|
||||||
|
|
||||||
nghttp(1), nghttpd(1), nghttpx(1)
|
:manpage:`nghttp(1)`, :manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[SEE ALSO]
|
|
||||||
|
|
||||||
nghttp(1), nghttpd(1), nghttpx(1)
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
SEE ALSO
|
||||||
|
--------
|
||||||
|
|
||||||
|
:manpage:`nghttp(1)`, :manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`
|
178
doc/nghttp.1
178
doc/nghttp.1
|
@ -1,44 +1,88 @@
|
||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4.
|
.\" Man page generated from reStructuredText.
|
||||||
.TH NGHTTP "1" "January 2015" "nghttp nghttp2/0.7.0" "User Commands"
|
.
|
||||||
|
.TH "NGHTTP" "1" "January 10, 2015" "0.7.1-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttp \- HTTP/2 experimental client
|
nghttp \- HTTP/2 experimental client
|
||||||
|
.
|
||||||
|
.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
|
||||||
|
..
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B nghttp
|
.sp
|
||||||
[\fI\,OPTIONS\/\fR]... \fI\,<URI>\/\fR...
|
\fBnghttp\fP [OPTIONS]... <URI>...
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.sp
|
||||||
HTTP/2 experimental client
|
HTTP/2 experimental client
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<URI>
|
.B <URI>
|
||||||
Specify URI to access.
|
Specify URI to access.
|
||||||
.SH OPTIONS
|
.UNINDENT
|
||||||
|
.SH OPTIONS:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR, \fB\-\-verbose\fR
|
.B \-v, \-\-verbose
|
||||||
Print debug information such as reception and
|
Print debug information such as reception and
|
||||||
transmission of frames and name/value pairs.
|
transmission of frames and name/value pairs.
|
||||||
Specifying this option multiple times increases
|
Specifying this option multiple times increases
|
||||||
verbosity.
|
verbosity.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-n\fR, \fB\-\-null\-out\fR
|
.B \-n, \-\-null\-out
|
||||||
Discard downloaded data.
|
Discard downloaded data.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-O\fR, \fB\-\-remote\-name\fR
|
.B \-O, \-\-remote\-name
|
||||||
Save download data in the current directory. The
|
Save download data in the current directory. The
|
||||||
filename is dereived from URI. If URI ends with
|
filename is dereived from URI. If URI ends with
|
||||||
\&'/', 'index.html' is used as a filename. Not
|
\(aq\fI/\fP\(aq, \(aqindex.html\(aq is used as a filename. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-t\fR, \fB\-\-timeout=\fR<N>
|
.B \-t, \-\-timeout=<N>
|
||||||
Timeout each request after <N> seconds.
|
Timeout each request after <N> seconds.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-w\fR, \fB\-\-window\-bits=\fR<N>
|
.B \-w, \-\-window\-bits=<N>
|
||||||
Sets the stream level initial window size to
|
Sets the stream level initial window size to
|
||||||
2**<N>\-1.
|
2**<N>\-1.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR, \fB\-\-connection\-window\-bits=\fR<N>
|
.B \-W, \-\-connection\-window\-bits=<N>
|
||||||
Sets the connection level initial window size to
|
Sets the connection level initial window size to
|
||||||
2**<N>\-1.
|
2**<N>\-1.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-a\fR, \fB\-\-get\-assets\fR
|
.B \-a, \-\-get\-assets
|
||||||
Download assets such as stylesheets, images and
|
Download assets such as stylesheets, images and
|
||||||
script files linked from the downloaded resource.
|
script files linked from the downloaded resource.
|
||||||
Only links whose origins are the same with the
|
Only links whose origins are the same with the
|
||||||
|
@ -47,81 +91,127 @@ prioritizes resources using HTTP/2 dependency
|
||||||
based priority. The priority order, from highest
|
based priority. The priority order, from highest
|
||||||
to lowest, is html itself, css, javascript and
|
to lowest, is html itself, css, javascript and
|
||||||
images.
|
images.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-s\fR, \fB\-\-stat\fR
|
.B \-s, \-\-stat
|
||||||
Print statistics.
|
Print statistics.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-H\fR, \fB\-\-header=\fR<HEADER>
|
.B \-H, \-\-header=<HEADER>
|
||||||
Add a header to the requests. Example:
|
Add a header to the requests. Example:
|
||||||
\fB\-H\fR':method: PUT'
|
\fI\%\-H\fP\(aq:method: PUT\(aq
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-cert=\fR<CERT>
|
.B \-\-cert=<CERT>
|
||||||
Use the specified client certificate file. The
|
Use the specified client certificate file. The
|
||||||
file must be in PEM format.
|
file must be in PEM format.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-key=\fR<KEY>
|
.B \-\-key=<KEY>
|
||||||
Use the client private key file. The file must
|
Use the client private key file. The file must
|
||||||
be in PEM format.
|
be in PEM format.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-d\fR, \fB\-\-data=\fR<FILE>
|
.B \-d, \-\-data=<FILE>
|
||||||
Post FILE to server. If '\-' is given, data will
|
Post FILE to server. If \(aq\-\(aq is given, data will
|
||||||
be read from stdin.
|
be read from stdin.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-m\fR, \fB\-\-multiply=\fR<N> Request each URI <N> times.
|
.B \-m, \-\-multiply=<N>
|
||||||
By default, same URI
|
Request each URI <N> times. By default, same URI
|
||||||
is not requested twice. This option disables it
|
is not requested twice. This option disables it
|
||||||
too.
|
too.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-u\fR, \fB\-\-upgrade\fR
|
.B \-u, \-\-upgrade
|
||||||
Perform HTTP Upgrade for HTTP/2. This option is
|
Perform HTTP Upgrade for HTTP/2. This option is
|
||||||
ignored if the request URI has https scheme. If
|
ignored if the request URI has https scheme. If
|
||||||
\fB\-d\fR is used, the HTTP upgrade request is performed
|
\fI\-d\fP is used, the HTTP upgrade request is performed
|
||||||
with OPTIONS method.
|
with OPTIONS method.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-p\fR, \fB\-\-weight=\fR<WEIGHT>
|
.B \-p, \-\-weight=<WEIGHT>
|
||||||
Sets priority group weight. The valid value
|
Sets priority group weight. The valid value
|
||||||
range is [1, 256], inclusive.
|
range is [1, 256], inclusive.
|
||||||
Default: 16
|
.sp
|
||||||
|
Default: \fB16\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-M\fR, \fB\-\-peer\-max\-concurrent\-streams=\fR<N>
|
.B \-M, \-\-peer\-max\-concurrent\-streams=<N>
|
||||||
Use <N> as SETTINGS_MAX_CONCURRENT_STREAMS value
|
Use <N> as SETTINGS_MAX_CONCURRENT_STREAMS value
|
||||||
of remote endpoint as if it is received in
|
of remote endpoint as if it is received in
|
||||||
SETTINGS frame. The default is large enough as
|
SETTINGS frame. The default is large enough as
|
||||||
it is seen as unlimited.
|
it is seen as unlimited.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-c\fR, \fB\-\-header\-table\-size=\fR<N>
|
.B \-c, \-\-header\-table\-size=<N>
|
||||||
Specify decoder header table size.
|
Specify decoder header table size.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-b\fR, \fB\-\-padding=\fR<N>
|
.B \-b, \-\-padding=<N>
|
||||||
Add at most <N> bytes to a frame payload as
|
Add at most <N> bytes to a frame payload as
|
||||||
padding. Specify 0 to disable padding.
|
padding. Specify 0 to disable padding.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-r\fR, \fB\-\-har=\fR<FILE>
|
.B \-r, \-\-har=<FILE>
|
||||||
Output HTTP transactions <FILE> in HAR format.
|
Output HTTP transactions <FILE> in HAR format.
|
||||||
If '\-' is given, data is written to stdout.
|
If \(aq\-\(aq is given, data is written to stdout.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-color\fR
|
.B \-\-color
|
||||||
Force colored log output.
|
Force colored log output.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-continuation\fR
|
.B \-\-continuation
|
||||||
Send large header to test CONTINUATION.
|
Send large header to test CONTINUATION.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-content\-length\fR
|
.B \-\-no\-content\-length
|
||||||
Don't send content\-length header field.
|
Don\(aqt send content\-length header field.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-dep\fR
|
.B \-\-no\-dep
|
||||||
Don't send dependency based priority hint to
|
Don\(aqt send dependency based priority hint to
|
||||||
server.
|
server.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-dep\-idle\fR
|
.B \-\-dep\-idle
|
||||||
Use idle streams as anchor nodes to express
|
Use idle streams as anchor nodes to express
|
||||||
priority.
|
priority.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-version\fR
|
.B \-\-version
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-h\fR, \fB\-\-help\fR
|
.B \-h, \-\-help
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
.SH "SEE ALSO"
|
.UNINDENT
|
||||||
|
.SH SEE ALSO
|
||||||
nghttpd(1), nghttpx(1), h2load(1)
|
.sp
|
||||||
|
\fInghttpd(1)\fP, \fInghttpx(1)\fP, \fIh2load(1)\fP
|
||||||
|
.SH AUTHOR
|
||||||
|
Tatsuhiro Tsujikawa
|
||||||
|
.SH COPYRIGHT
|
||||||
|
2012, 2014, Tatsuhiro Tsujikawa
|
||||||
|
.\" Generated by docutils manpage writer.
|
||||||
|
.
|
||||||
|
|
|
@ -1,32 +1,26 @@
|
||||||
.. DO NOT MODIFY THIS FILE! It was generated by man2rst.py
|
|
||||||
|
|
||||||
.. program:: nghttp
|
|
||||||
|
|
||||||
nghttp(1)
|
nghttp(1)
|
||||||
=========
|
=========
|
||||||
|
|
||||||
NAME
|
|
||||||
----
|
|
||||||
nghttp - HTTP/2 experimental client
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**nghttp** [OPTIONS]... <URI>...
|
**nghttp** [OPTIONS]... <URI>...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
HTTP/2 experimental client
|
HTTP/2 experimental client
|
||||||
|
|
||||||
.. option:: URI
|
.. describe:: <URI>
|
||||||
|
|
||||||
Specify URI to access.
|
Specify URI to access.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS:
|
||||||
-------
|
--------
|
||||||
|
|
||||||
.. option:: -v, --verbose
|
.. option:: -v, --verbose
|
||||||
|
|
||||||
|
|
||||||
Print debug information such as reception and
|
Print debug information such as reception and
|
||||||
transmission of frames and name/value pairs.
|
transmission of frames and name/value pairs.
|
||||||
Specifying this option multiple times increases
|
Specifying this option multiple times increases
|
||||||
|
@ -34,37 +28,31 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -n, --null-out
|
.. option:: -n, --null-out
|
||||||
|
|
||||||
|
|
||||||
Discard downloaded data.
|
Discard downloaded data.
|
||||||
|
|
||||||
.. option:: -O, --remote-name
|
.. option:: -O, --remote-name
|
||||||
|
|
||||||
|
|
||||||
Save download data in the current directory. The
|
Save download data in the current directory. The
|
||||||
filename is dereived from URI. If URI ends with
|
filename is dereived from URI. If URI ends with
|
||||||
'/', 'index.html' is used as a filename. Not
|
'*/*', 'index.html' is used as a filename. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
|
|
||||||
.. option:: -t, --timeout=<N>
|
.. option:: -t, --timeout=<N>
|
||||||
|
|
||||||
|
|
||||||
Timeout each request after <N> seconds.
|
Timeout each request after <N> seconds.
|
||||||
|
|
||||||
.. option:: -w, --window-bits=<N>
|
.. option:: -w, --window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the stream level initial window size to
|
Sets the stream level initial window size to
|
||||||
2\*\*<N>-1.
|
2\*\*<N>-1.
|
||||||
|
|
||||||
.. option:: -W, --connection-window-bits=<N>
|
.. option:: -W, --connection-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the connection level initial window size to
|
Sets the connection level initial window size to
|
||||||
2\*\*<N>-1.
|
2\*\*<N>-1.
|
||||||
|
|
||||||
.. option:: -a, --get-assets
|
.. option:: -a, --get-assets
|
||||||
|
|
||||||
|
|
||||||
Download assets such as stylesheets, images and
|
Download assets such as stylesheets, images and
|
||||||
script files linked from the downloaded resource.
|
script files linked from the downloaded resource.
|
||||||
Only links whose origins are the same with the
|
Only links whose origins are the same with the
|
||||||
|
@ -76,43 +64,36 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -s, --stat
|
.. option:: -s, --stat
|
||||||
|
|
||||||
|
|
||||||
Print statistics.
|
Print statistics.
|
||||||
|
|
||||||
.. option:: -H, --header=<HEADER>
|
.. option:: -H, --header=<HEADER>
|
||||||
|
|
||||||
|
|
||||||
Add a header to the requests. Example:
|
Add a header to the requests. Example:
|
||||||
-H':method: PUT'
|
:option:`-H`\':method: PUT'
|
||||||
|
|
||||||
.. option:: --cert=<CERT>
|
.. option:: --cert=<CERT>
|
||||||
|
|
||||||
|
|
||||||
Use the specified client certificate file. The
|
Use the specified client certificate file. The
|
||||||
file must be in PEM format.
|
file must be in PEM format.
|
||||||
|
|
||||||
.. option:: --key=<KEY>
|
.. option:: --key=<KEY>
|
||||||
|
|
||||||
|
|
||||||
Use the client private key file. The file must
|
Use the client private key file. The file must
|
||||||
be in PEM format.
|
be in PEM format.
|
||||||
|
|
||||||
.. option:: -d, --data=<FILE>
|
.. option:: -d, --data=<FILE>
|
||||||
|
|
||||||
|
|
||||||
Post FILE to server. If '-' is given, data will
|
Post FILE to server. If '-' is given, data will
|
||||||
be read from stdin.
|
be read from stdin.
|
||||||
|
|
||||||
.. option:: -m, --multiply=<N>
|
.. option:: -m, --multiply=<N>
|
||||||
|
|
||||||
Request each URI <N> times.
|
Request each URI <N> times. By default, same URI
|
||||||
By default, same URI
|
|
||||||
is not requested twice. This option disables it
|
is not requested twice. This option disables it
|
||||||
too.
|
too.
|
||||||
|
|
||||||
.. option:: -u, --upgrade
|
.. option:: -u, --upgrade
|
||||||
|
|
||||||
|
|
||||||
Perform HTTP Upgrade for HTTP/2. This option is
|
Perform HTTP Upgrade for HTTP/2. This option is
|
||||||
ignored if the request URI has https scheme. If
|
ignored if the request URI has https scheme. If
|
||||||
:option:`-d` is used, the HTTP upgrade request is performed
|
:option:`-d` is used, the HTTP upgrade request is performed
|
||||||
|
@ -120,14 +101,13 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -p, --weight=<WEIGHT>
|
.. option:: -p, --weight=<WEIGHT>
|
||||||
|
|
||||||
|
|
||||||
Sets priority group weight. The valid value
|
Sets priority group weight. The valid value
|
||||||
range is [1, 256], inclusive.
|
range is [1, 256], inclusive.
|
||||||
Default: 16
|
|
||||||
|
Default: ``16``
|
||||||
|
|
||||||
.. option:: -M, --peer-max-concurrent-streams=<N>
|
.. option:: -M, --peer-max-concurrent-streams=<N>
|
||||||
|
|
||||||
|
|
||||||
Use <N> as SETTINGS_MAX_CONCURRENT_STREAMS value
|
Use <N> as SETTINGS_MAX_CONCURRENT_STREAMS value
|
||||||
of remote endpoint as if it is received in
|
of remote endpoint as if it is received in
|
||||||
SETTINGS frame. The default is large enough as
|
SETTINGS frame. The default is large enough as
|
||||||
|
@ -135,59 +115,49 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -c, --header-table-size=<N>
|
.. option:: -c, --header-table-size=<N>
|
||||||
|
|
||||||
|
|
||||||
Specify decoder header table size.
|
Specify decoder header table size.
|
||||||
|
|
||||||
.. option:: -b, --padding=<N>
|
.. option:: -b, --padding=<N>
|
||||||
|
|
||||||
|
|
||||||
Add at most <N> bytes to a frame payload as
|
Add at most <N> bytes to a frame payload as
|
||||||
padding. Specify 0 to disable padding.
|
padding. Specify 0 to disable padding.
|
||||||
|
|
||||||
.. option:: -r, --har=<FILE>
|
.. option:: -r, --har=<FILE>
|
||||||
|
|
||||||
|
|
||||||
Output HTTP transactions <FILE> in HAR format.
|
Output HTTP transactions <FILE> in HAR format.
|
||||||
If '-' is given, data is written to stdout.
|
If '-' is given, data is written to stdout.
|
||||||
|
|
||||||
.. option:: --color
|
.. option:: --color
|
||||||
|
|
||||||
|
|
||||||
Force colored log output.
|
Force colored log output.
|
||||||
|
|
||||||
.. option:: --continuation
|
.. option:: --continuation
|
||||||
|
|
||||||
|
|
||||||
Send large header to test CONTINUATION.
|
Send large header to test CONTINUATION.
|
||||||
|
|
||||||
.. option:: --no-content-length
|
.. option:: --no-content-length
|
||||||
|
|
||||||
|
|
||||||
Don't send content-length header field.
|
Don't send content-length header field.
|
||||||
|
|
||||||
.. option:: --no-dep
|
.. option:: --no-dep
|
||||||
|
|
||||||
|
|
||||||
Don't send dependency based priority hint to
|
Don't send dependency based priority hint to
|
||||||
server.
|
server.
|
||||||
|
|
||||||
.. option:: --dep-idle
|
.. option:: --dep-idle
|
||||||
|
|
||||||
|
|
||||||
Use idle streams as anchor nodes to express
|
Use idle streams as anchor nodes to express
|
||||||
priority.
|
priority.
|
||||||
|
|
||||||
.. option:: --version
|
.. option:: --version
|
||||||
|
|
||||||
|
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
|
||||||
.. option:: -h, --help
|
.. option:: -h, --help
|
||||||
|
|
||||||
|
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
--------
|
--------
|
||||||
|
|
||||||
nghttpd(1), nghttpx(1), h2load(1)
|
:manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[SEE ALSO]
|
|
||||||
|
|
||||||
nghttpd(1), nghttpx(1), h2load(1)
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
SEE ALSO
|
||||||
|
--------
|
||||||
|
|
||||||
|
:manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|
147
doc/nghttpd.1
147
doc/nghttpd.1
|
@ -1,93 +1,162 @@
|
||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4.
|
.\" Man page generated from reStructuredText.
|
||||||
.TH NGHTTPD "1" "January 2015" "nghttpd nghttp2/0.7.0" "User Commands"
|
.
|
||||||
|
.TH "NGHTTPD" "1" "January 10, 2015" "0.7.1-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttpd \- HTTP/2 experimental server
|
nghttpd \- HTTP/2 experimental server
|
||||||
|
.
|
||||||
|
.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
|
||||||
|
..
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B nghttpd
|
.sp
|
||||||
[\fI\,OPTION\/\fR]... \fI\,<PORT> <PRIVATE_KEY> <CERT>\/\fR
|
\fBnghttpd\fP [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
|
||||||
.br
|
|
||||||
.B nghttpd
|
|
||||||
\fI\,--no-tls \/\fR[\fI\,OPTION\/\fR]... \fI\,<PORT>\/\fR
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.sp
|
||||||
HTTP/2 experimental server
|
HTTP/2 experimental server
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<PORT>
|
.B <PORT>
|
||||||
Specify listening port number.
|
Specify listening port number.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<PRIVATE_KEY>
|
.B <PRIVATE_KEY>
|
||||||
Set path to server's private key. Required
|
Set path to server\(aqs private key. Required
|
||||||
unless \fB\-\-no\-tls\fR is specified.
|
unless \fI\%\-\-no\-tls\fP is specified.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<CERT>
|
.B <CERT>
|
||||||
Set path to server's certificate. Required
|
Set path to server\(aqs certificate. Required
|
||||||
unless \fB\-\-no\-tls\fR is specified.
|
unless \fI\%\-\-no\-tls\fP is specified.
|
||||||
.SH OPTIONS
|
.UNINDENT
|
||||||
|
.SH OPTIONS:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-D\fR, \fB\-\-daemon\fR
|
.B \-D, \-\-daemon
|
||||||
Run in a background. If \fB\-D\fR is used, the current
|
Run in a background. If \fI\-D\fP is used, the current
|
||||||
working directory is changed to '/'. Therefore
|
working directory is changed to \(aq\fI/\fP\(aq. Therefore
|
||||||
if this option is used, \fB\-d\fR option must be
|
if this option is used, \fI\%\-d\fP option must be
|
||||||
specified.
|
specified.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-V\fR, \fB\-\-verify\-client\fR
|
.B \-V, \-\-verify\-client
|
||||||
The server sends a client certificate request.
|
The server sends a client certificate request.
|
||||||
If the client did not return a certificate, the
|
If the client did not return a certificate, the
|
||||||
handshake is terminated. Currently, this option
|
handshake is terminated. Currently, this option
|
||||||
just requests a client certificate and does not
|
just requests a client certificate and does not
|
||||||
verify it.
|
verify it.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-d\fR, \fB\-\-htdocs=\fR<PATH>
|
.B \-d, \-\-htdocs=<PATH>
|
||||||
Specify document root. If this option is not
|
Specify document root. If this option is not
|
||||||
specified, the document root is the current
|
specified, the document root is the current
|
||||||
working directory.
|
working directory.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR, \fB\-\-verbose\fR
|
.B \-v, \-\-verbose
|
||||||
Print debug information such as reception/
|
Print debug information such as reception/
|
||||||
transmission of frames and name/value pairs.
|
transmission of frames and name/value pairs.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-tls\fR
|
.B \-\-no\-tls
|
||||||
Disable SSL/TLS.
|
Disable SSL/TLS.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-c\fR, \fB\-\-header\-table\-size=\fR<N>
|
.B \-c, \-\-header\-table\-size=<N>
|
||||||
Specify decoder header table size.
|
Specify decoder header table size.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-color\fR
|
.B \-\-color
|
||||||
Force colored log output.
|
Force colored log output.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-p\fR, \fB\-\-push=\fR<PATH>=<PUSH_PATH,...>
|
.B \-p, \-\-push=<PATH>=<PUSH_PATH,...>
|
||||||
Push resources <PUSH_PATH>s when <PATH> is
|
Push resources <PUSH_PATH>s when <PATH> is
|
||||||
requested. This option can be used repeatedly to
|
requested. This option can be used repeatedly to
|
||||||
specify multiple push configurations. <PATH> and
|
specify multiple push configurations. <PATH> and
|
||||||
<PUSH_PATH>s are relative to document root. See
|
<PUSH_PATH>s are relative to document root. See
|
||||||
\fB\-\-htdocs\fR option. Example: \fB\-p\fR/=/foo.png
|
\fI\%\-\-htdocs\fP option. Example: \fI\-p\fP/=/foo.png
|
||||||
\fB\-p\fR/doc=/bar.css
|
\fI\-p\fP/doc=/bar.css
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-b\fR, \fB\-\-padding=\fR<N>
|
.B \-b, \-\-padding=<N>
|
||||||
Add at most <N> bytes to a frame payload as
|
Add at most <N> bytes to a frame payload as
|
||||||
padding. Specify 0 to disable padding.
|
padding. Specify 0 to disable padding.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-n\fR, \fB\-\-workers=\fR<CORE>
|
.B \-n, \-\-workers=<CORE>
|
||||||
Set the number of worker threads.
|
Set the number of worker threads.
|
||||||
Default: 1
|
.sp
|
||||||
|
Default: \fB1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-e\fR, \fB\-\-error\-gzip\fR
|
.B \-e, \-\-error\-gzip
|
||||||
Make error response gzipped.
|
Make error response gzipped.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-dh\-param\-file=\fR<PATH>
|
.B \-\-dh\-param\-file=<PATH>
|
||||||
Path to file that contains DH parameters in PEM
|
Path to file that contains DH parameters in PEM
|
||||||
format. Without this option, DHE cipher suites
|
format. Without this option, DHE cipher suites
|
||||||
are not available.
|
are not available.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-early\-response\fR
|
.B \-\-early\-response
|
||||||
Start sending response when request HEADERS is
|
Start sending response when request HEADERS is
|
||||||
received, rather than complete request is
|
received, rather than complete request is
|
||||||
received.
|
received.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-version\fR
|
.B \-\-version
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-h\fR, \fB\-\-help\fR
|
.B \-h, \-\-help
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
.SH "SEE ALSO"
|
.UNINDENT
|
||||||
|
.SH SEE ALSO
|
||||||
nghttp(1), nghttpx(1), h2load(1)
|
.sp
|
||||||
|
\fInghttp(1)\fP, \fInghttpx(1)\fP, \fIh2load(1)\fP
|
||||||
|
.SH AUTHOR
|
||||||
|
Tatsuhiro Tsujikawa
|
||||||
|
.SH COPYRIGHT
|
||||||
|
2012, 2014, Tatsuhiro Tsujikawa
|
||||||
|
.\" Generated by docutils manpage writer.
|
||||||
|
.
|
||||||
|
|
|
@ -1,52 +1,43 @@
|
||||||
.. DO NOT MODIFY THIS FILE! It was generated by man2rst.py
|
|
||||||
|
|
||||||
.. program:: nghttpd
|
|
||||||
|
|
||||||
nghttpd(1)
|
nghttpd(1)
|
||||||
==========
|
==========
|
||||||
|
|
||||||
NAME
|
|
||||||
----
|
|
||||||
nghttpd - HTTP/2 experimental server
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
**nghttpd** [OPTION]... <PORT> <PRIVATE_KEY> <CERT>
|
|
||||||
|
|
||||||
**nghttpd** --no-tls [OPTION]... <PORT>
|
**nghttpd** [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
HTTP/2 experimental server
|
HTTP/2 experimental server
|
||||||
|
|
||||||
.. option:: PORT
|
.. describe:: <PORT>
|
||||||
|
|
||||||
Specify listening port number.
|
Specify listening port number.
|
||||||
|
|
||||||
.. option:: PRIVATE_KEY
|
.. describe:: <PRIVATE_KEY>
|
||||||
|
|
||||||
Set path to server's private key. Required
|
Set path to server's private key. Required
|
||||||
unless :option:`--no-tls` is specified.
|
unless :option:`--no-tls` is specified.
|
||||||
|
|
||||||
.. option:: CERT
|
.. describe:: <CERT>
|
||||||
|
|
||||||
Set path to server's certificate. Required
|
Set path to server's certificate. Required
|
||||||
unless :option:`--no-tls` is specified.
|
unless :option:`--no-tls` is specified.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS:
|
||||||
-------
|
--------
|
||||||
|
|
||||||
.. option:: -D, --daemon
|
.. option:: -D, --daemon
|
||||||
|
|
||||||
|
|
||||||
Run in a background. If :option:`-D` is used, the current
|
Run in a background. If :option:`-D` is used, the current
|
||||||
working directory is changed to '/'. Therefore
|
working directory is changed to '*/*'. Therefore
|
||||||
if this option is used, :option:`-d` option must be
|
if this option is used, :option:`-d` option must be
|
||||||
specified.
|
specified.
|
||||||
|
|
||||||
.. option:: -V, --verify-client
|
.. option:: -V, --verify-client
|
||||||
|
|
||||||
|
|
||||||
The server sends a client certificate request.
|
The server sends a client certificate request.
|
||||||
If the client did not return a certificate, the
|
If the client did not return a certificate, the
|
||||||
handshake is terminated. Currently, this option
|
handshake is terminated. Currently, this option
|
||||||
|
@ -55,84 +46,72 @@ OPTIONS
|
||||||
|
|
||||||
.. option:: -d, --htdocs=<PATH>
|
.. option:: -d, --htdocs=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Specify document root. If this option is not
|
Specify document root. If this option is not
|
||||||
specified, the document root is the current
|
specified, the document root is the current
|
||||||
working directory.
|
working directory.
|
||||||
|
|
||||||
.. option:: -v, --verbose
|
.. option:: -v, --verbose
|
||||||
|
|
||||||
|
|
||||||
Print debug information such as reception/
|
Print debug information such as reception/
|
||||||
transmission of frames and name/value pairs.
|
transmission of frames and name/value pairs.
|
||||||
|
|
||||||
.. option:: --no-tls
|
.. option:: --no-tls
|
||||||
|
|
||||||
|
|
||||||
Disable SSL/TLS.
|
Disable SSL/TLS.
|
||||||
|
|
||||||
.. option:: -c, --header-table-size=<N>
|
.. option:: -c, --header-table-size=<N>
|
||||||
|
|
||||||
|
|
||||||
Specify decoder header table size.
|
Specify decoder header table size.
|
||||||
|
|
||||||
.. option:: --color
|
.. option:: --color
|
||||||
|
|
||||||
|
|
||||||
Force colored log output.
|
Force colored log output.
|
||||||
|
|
||||||
.. option:: -p, --push=<PATH>=<PUSH_PATH,...>
|
.. option:: -p, --push=<PATH>=<PUSH_PATH,...>
|
||||||
|
|
||||||
|
|
||||||
Push resources <PUSH_PATH>s when <PATH> is
|
Push resources <PUSH_PATH>s when <PATH> is
|
||||||
requested. This option can be used repeatedly to
|
requested. This option can be used repeatedly to
|
||||||
specify multiple push configurations. <PATH> and
|
specify multiple push configurations. <PATH> and
|
||||||
<PUSH_PATH>s are relative to document root. See
|
<PUSH_PATH>s are relative to document root. See
|
||||||
:option:`--htdocs` option. Example: -p/=/foo.png
|
:option:`--htdocs` option. Example: :option:`\-p`/=/foo.png
|
||||||
-p/doc=/bar.css
|
:option:`-p`\/doc=/bar.css
|
||||||
|
|
||||||
.. option:: -b, --padding=<N>
|
.. option:: -b, --padding=<N>
|
||||||
|
|
||||||
|
|
||||||
Add at most <N> bytes to a frame payload as
|
Add at most <N> bytes to a frame payload as
|
||||||
padding. Specify 0 to disable padding.
|
padding. Specify 0 to disable padding.
|
||||||
|
|
||||||
.. option:: -n, --workers=<CORE>
|
.. option:: -n, --workers=<CORE>
|
||||||
|
|
||||||
|
|
||||||
Set the number of worker threads.
|
Set the number of worker threads.
|
||||||
Default: 1
|
|
||||||
|
Default: ``1``
|
||||||
|
|
||||||
.. option:: -e, --error-gzip
|
.. option:: -e, --error-gzip
|
||||||
|
|
||||||
|
|
||||||
Make error response gzipped.
|
Make error response gzipped.
|
||||||
|
|
||||||
.. option:: --dh-param-file=<PATH>
|
.. option:: --dh-param-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains DH parameters in PEM
|
Path to file that contains DH parameters in PEM
|
||||||
format. Without this option, DHE cipher suites
|
format. Without this option, DHE cipher suites
|
||||||
are not available.
|
are not available.
|
||||||
|
|
||||||
.. option:: --early-response
|
.. option:: --early-response
|
||||||
|
|
||||||
|
|
||||||
Start sending response when request HEADERS is
|
Start sending response when request HEADERS is
|
||||||
received, rather than complete request is
|
received, rather than complete request is
|
||||||
received.
|
received.
|
||||||
|
|
||||||
.. option:: --version
|
.. option:: --version
|
||||||
|
|
||||||
|
|
||||||
Display version information and exit.
|
Display version information and exit.
|
||||||
|
|
||||||
.. option:: -h, --help
|
.. option:: -h, --help
|
||||||
|
|
||||||
|
|
||||||
Display this help and exit.
|
Display this help and exit.
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
--------
|
--------
|
||||||
|
|
||||||
nghttp(1), nghttpx(1), h2load(1)
|
:manpage:`nghttp(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[SEE ALSO]
|
|
||||||
|
|
||||||
nghttp(1), nghttpx(1), h2load(1)
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
SEE ALSO
|
||||||
|
--------
|
||||||
|
|
||||||
|
:manpage:`nghttp(1)`, :manpage:`nghttpx(1)`, :manpage:`h2load(1)`
|
635
doc/nghttpx.1
635
doc/nghttpx.1
|
@ -1,55 +1,102 @@
|
||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4.
|
.\" Man page generated from reStructuredText.
|
||||||
.TH NGHTTPX "1" "January 2015" "nghttpx nghttp2/0.7.0" "User Commands"
|
.
|
||||||
|
.TH "NGHTTPX" "1" "January 10, 2015" "0.7.1-DEV" "nghttp2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nghttpx \- HTTP/2 experimental proxy
|
nghttpx \- HTTP/2 experimental proxy
|
||||||
|
.
|
||||||
|
.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
|
||||||
|
..
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B nghttpx
|
.sp
|
||||||
[\fI\,OPTIONS\/\fR]... [\fI\,<PRIVATE_KEY> <CERT>\/\fR]
|
\fBnghttpx\fP [OPTIONS]... [<PRIVATE_KEY> <CERT>]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.sp
|
||||||
A reverse proxy for HTTP/2, HTTP/1 and SPDY.
|
A reverse proxy for HTTP/2, HTTP/1 and SPDY.
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<PRIVATE_KEY>
|
.B <PRIVATE_KEY>
|
||||||
Set path to server's private key. Required
|
Set path to server\(aqs private key. Required
|
||||||
unless \fB\-p\fR, \fB\-\-client\fR or \fB\-\-frontend\-no\-tls\fR are
|
unless \fI\%\-p\fP, \fI\%\-\-client\fP or \fI\%\-\-frontend\-no\-tls\fP are
|
||||||
given.
|
given.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
<CERT>
|
.B <CERT>
|
||||||
Set path to server's certificate. Required
|
Set path to server\(aqs certificate. Required
|
||||||
unless \fB\-p\fR, \fB\-\-client\fR or \fB\-\-frontend\-no\-tls\fR are
|
unless \fI\%\-p\fP, \fI\%\-\-client\fP or \fI\%\-\-frontend\-no\-tls\fP are
|
||||||
given.
|
given.
|
||||||
.SH OPTIONS
|
.UNINDENT
|
||||||
.IP
|
.SH OPTIONS:
|
||||||
|
.sp
|
||||||
The options are categorized into several groups.
|
The options are categorized into several groups.
|
||||||
.SS "Connections:"
|
.SS Connections:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-b\fR, \fB\-\-backend=\fR<HOST,PORT>
|
.B \-b, \-\-backend=<HOST,PORT>
|
||||||
Set backend host and port. For HTTP/1 backend,
|
Set backend host and port. For HTTP/1 backend,
|
||||||
multiple backend addresses are accepted by
|
multiple backend addresses are accepted by
|
||||||
repeating this option. HTTP/2 backend does not
|
repeating this option. HTTP/2 backend does not
|
||||||
support multiple backend addresses and the first
|
support multiple backend addresses and the first
|
||||||
occurrence of this option is used.
|
occurrence of this option is used.
|
||||||
Default: '127.0.0.1,80'
|
.sp
|
||||||
|
Default: \fB127.0.0.1,80\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-f\fR, \fB\-\-frontend=\fR<HOST,PORT>
|
.B \-f, \-\-frontend=<HOST,PORT>
|
||||||
Set frontend host and port. If <HOST> is '*', it
|
Set frontend host and port. If <HOST> is \(aq*\(aq, it
|
||||||
assumes all addresses including both IPv4 and
|
assumes all addresses including both IPv4 and
|
||||||
IPv6.
|
IPv6.
|
||||||
Default: '*,3000'
|
.sp
|
||||||
|
Default: \fB*,3000\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backlog=\fR<NUM>
|
.B \-\-backlog=<NUM>
|
||||||
Set listen backlog size. If \fB\-1\fR is given,
|
Set listen backlog size. If \fI\-1\fP is given,
|
||||||
libevent will choose suitable value.
|
libevent will choose suitable value.
|
||||||
Default: 128
|
.sp
|
||||||
|
Default: \fB128\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-ipv4\fR
|
.B \-\-backend\-ipv4
|
||||||
Resolve backend hostname to IPv4 address only.
|
Resolve backend hostname to IPv4 address only.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-ipv6\fR
|
.B \-\-backend\-ipv6
|
||||||
Resolve backend hostname to IPv6 address only.
|
Resolve backend hostname to IPv6 address only.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-http\-proxy\-uri=\fR<URI>
|
.B \-\-backend\-http\-proxy\-uri=<URI>
|
||||||
Specify proxy URI in the form
|
Specify proxy URI in the form
|
||||||
http://[<USER>:<PASS>@]<PROXY>:<PORT>. If a
|
\fI\%http:/\fP/[<USER>:<PASS>@]<PROXY>:<PORT>. If a
|
||||||
proxy requires authentication, specify <USER> and
|
proxy requires authentication, specify <USER> and
|
||||||
<PASS>. Note that they must be properly
|
<PASS>. Note that they must be properly
|
||||||
percent\-encoded. This proxy is used when the
|
percent\-encoded. This proxy is used when the
|
||||||
|
@ -60,202 +107,292 @@ tunnel. After that, nghttpx performs SSL/TLS
|
||||||
handshake with the downstream through the tunnel.
|
handshake with the downstream through the tunnel.
|
||||||
The timeouts when connecting and making CONNECT
|
The timeouts when connecting and making CONNECT
|
||||||
request can be specified by
|
request can be specified by
|
||||||
\fB\-\-backend\-read\-timeout\fR and
|
\fI\%\-\-backend\-read\-timeout\fP and
|
||||||
\fB\-\-backend\-write\-timeout\fR options.
|
\fI\%\-\-backend\-write\-timeout\fP options.
|
||||||
.SS "Performance:"
|
.UNINDENT
|
||||||
|
.SS Performance:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-n\fR, \fB\-\-workers=\fR<CORES>
|
.B \-n, \-\-workers=<CORES>
|
||||||
Set the number of worker threads.
|
Set the number of worker threads.
|
||||||
Default: 1
|
.sp
|
||||||
|
Default: \fB1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-read\-rate=\fR<RATE>
|
.B \-\-read\-rate=<RATE>
|
||||||
Set maximum average read rate on frontend
|
Set maximum average read rate on frontend
|
||||||
connection. Setting 0 to this option means read
|
connection. Setting 0 to this option means read
|
||||||
rate is unlimited.
|
rate is unlimited.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-read\-burst=\fR<SIZE>
|
.B \-\-read\-burst=<SIZE>
|
||||||
Set maximum read burst size on frontend
|
Set maximum read burst size on frontend
|
||||||
connection. Setting 0 to this option means read
|
connection. Setting 0 to this option means read
|
||||||
burst size is unlimited.
|
burst size is unlimited.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-write\-rate=\fR<RATE>
|
.B \-\-write\-rate=<RATE>
|
||||||
Set maximum average write rate on frontend
|
Set maximum average write rate on frontend
|
||||||
connection. Setting 0 to this option means write
|
connection. Setting 0 to this option means write
|
||||||
rate is unlimited.
|
rate is unlimited.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-write\-burst=\fR<SIZE>
|
.B \-\-write\-burst=<SIZE>
|
||||||
Set maximum write burst size on frontend
|
Set maximum write burst size on frontend
|
||||||
connection. Setting 0 to this option means write
|
connection. Setting 0 to this option means write
|
||||||
burst size is unlimited.
|
burst size is unlimited.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-worker\-read\-rate=\fR<RATE>
|
.B \-\-worker\-read\-rate=<RATE>
|
||||||
Set maximum average read rate on frontend
|
Set maximum average read rate on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means read rate is unlimited. Not implemented
|
means read rate is unlimited. Not implemented
|
||||||
yet.
|
yet.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-worker\-read\-burst=\fR<SIZE>
|
.B \-\-worker\-read\-burst=<SIZE>
|
||||||
Set maximum read burst size on frontend
|
Set maximum read burst size on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means read burst size is unlimited. Not
|
means read burst size is unlimited. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-worker\-write\-rate=\fR<RATE>
|
.B \-\-worker\-write\-rate=<RATE>
|
||||||
Set maximum average write rate on frontend
|
Set maximum average write rate on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means write rate is unlimited. Not implemented
|
means write rate is unlimited. Not implemented
|
||||||
yet.
|
yet.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-worker\-write\-burst=\fR<SIZE>
|
.B \-\-worker\-write\-burst=<SIZE>
|
||||||
Set maximum write burst size on frontend
|
Set maximum write burst size on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means write burst size is unlimited. Not
|
means write burst size is unlimited. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-worker\-frontend\-connections=\fR<NUM>
|
.B \-\-worker\-frontend\-connections=<NUM>
|
||||||
Set maximum number of simultaneous connections
|
Set maximum number of simultaneous connections
|
||||||
frontend accepts. Setting 0 means unlimited.
|
frontend accepts. Setting 0 means unlimited.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-http1\-connections\-per\-host=\fR<NUM>
|
.B \-\-backend\-http1\-connections\-per\-host=<NUM>
|
||||||
Set maximum number of backend concurrent HTTP/1
|
Set maximum number of backend concurrent HTTP/1
|
||||||
connections per host. This option is meaningful
|
connections per host. This option is meaningful
|
||||||
when \fB\-s\fR option is used. To limit the number of
|
when \fI\%\-s\fP option is used. To limit the number of
|
||||||
connections per frontend for default mode, use
|
connections per frontend for default mode, use
|
||||||
\fB\-\-backend\-http1\-connections\-per\-frontend\fR.
|
\fI\%\-\-backend\-http1\-connections\-per\-frontend\fP\&.
|
||||||
Default: 8
|
.sp
|
||||||
|
Default: \fB8\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-http1\-connections\-per\-frontend=\fR<NUM>
|
.B \-\-backend\-http1\-connections\-per\-frontend=<NUM>
|
||||||
Set maximum number of backend concurrent HTTP/1
|
Set maximum number of backend concurrent HTTP/1
|
||||||
connections per frontend. This option is only
|
connections per frontend. This option is only
|
||||||
used for default mode. 0 means unlimited. To
|
used for default mode. 0 means unlimited. To
|
||||||
limit the number of connections per host for
|
limit the number of connections per host for
|
||||||
HTTP/2 or SPDY proxy mode (\fB\-s\fR option), use
|
HTTP/2 or SPDY proxy mode (\-s option), use
|
||||||
\fB\-\-backend\-http1\-connections\-per\-host\fR.
|
\fI\%\-\-backend\-http1\-connections\-per\-host\fP\&.
|
||||||
Default: 0
|
.sp
|
||||||
.SS "Timeout:"
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.SS Timeout:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-http2\-read\-timeout=\fR<SEC>
|
.B \-\-frontend\-http2\-read\-timeout=<SEC>
|
||||||
Specify read timeout for HTTP/2 and SPDY frontend
|
Specify read timeout for HTTP/2 and SPDY frontend
|
||||||
connection.
|
connection.
|
||||||
Default: 180
|
.sp
|
||||||
|
Default: \fB180\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-read\-timeout=\fR<SEC>
|
.B \-\-frontend\-read\-timeout=<SEC>
|
||||||
Specify read timeout for HTTP/1.1 frontend
|
Specify read timeout for HTTP/1.1 frontend
|
||||||
connection.
|
connection.
|
||||||
Default: 180
|
.sp
|
||||||
|
Default: \fB180\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-write\-timeout=\fR<SEC>
|
.B \-\-frontend\-write\-timeout=<SEC>
|
||||||
Specify write timeout for all frontend
|
Specify write timeout for all frontend
|
||||||
connections.
|
connections.
|
||||||
Default: 30
|
.sp
|
||||||
|
Default: \fB30\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-stream\-read\-timeout=\fR<SEC>
|
.B \-\-stream\-read\-timeout=<SEC>
|
||||||
Specify read timeout for HTTP/2 and SPDY streams.
|
Specify read timeout for HTTP/2 and SPDY streams.
|
||||||
0 means no timeout.
|
0 means no timeout.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-stream\-write\-timeout=\fR<SEC>
|
.B \-\-stream\-write\-timeout=<SEC>
|
||||||
Specify write timeout for HTTP/2 and SPDY
|
Specify write timeout for HTTP/2 and SPDY
|
||||||
streams. 0 means no timeout.
|
streams. 0 means no timeout.
|
||||||
Default: 0
|
.sp
|
||||||
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-read\-timeout=\fR<SEC>
|
.B \-\-backend\-read\-timeout=<SEC>
|
||||||
Specify read timeout for backend connection.
|
Specify read timeout for backend connection.
|
||||||
Default: 180
|
.sp
|
||||||
|
Default: \fB180\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-write\-timeout=\fR<SEC>
|
.B \-\-backend\-write\-timeout=<SEC>
|
||||||
Specify write timeout for backend connection.
|
Specify write timeout for backend connection.
|
||||||
Default: 30
|
.sp
|
||||||
|
Default: \fB30\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-keep\-alive\-timeout=\fR<SEC>
|
.B \-\-backend\-keep\-alive\-timeout=<SEC>
|
||||||
Specify keep\-alive timeout for backend
|
Specify keep\-alive timeout for backend
|
||||||
connection.
|
connection.
|
||||||
Default: 600
|
.sp
|
||||||
|
Default: \fB600\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-listener\-disable\-timeout=\fR<SEC>
|
.B \-\-listener\-disable\-timeout=<SEC>
|
||||||
After accepting connection failed, connection
|
After accepting connection failed, connection
|
||||||
listener is disabled for a given time in seconds.
|
listener is disabled for a given time in seconds.
|
||||||
Specifying 0 disables this feature.
|
Specifying 0 disables this feature.
|
||||||
Default: 0
|
.sp
|
||||||
.SS "SSL/TLS:"
|
Default: \fB0\fP
|
||||||
|
.UNINDENT
|
||||||
|
.SS SSL/TLS:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-ciphers=\fR<SUITE>
|
.B \-\-ciphers=<SUITE>
|
||||||
Set allowed cipher list. The format of the
|
Set allowed cipher list. The format of the
|
||||||
string is described in OpenSSL ciphers(1).
|
string is described in OpenSSL ciphers(1).
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-k\fR, \fB\-\-insecure\fR
|
.B \-k, \-\-insecure
|
||||||
Don't verify backend server's certificate if \fB\-p\fR,
|
Don\(aqt verify backend server\(aqs certificate if \fI\%\-p\fP,
|
||||||
\fB\-\-client\fR or \fB\-\-http2\-bridge\fR are given and
|
\fI\%\-\-client\fP or \fI\%\-\-http2\-bridge\fP are given and
|
||||||
\fB\-\-backend\-no\-tls\fR is not given.
|
\fI\%\-\-backend\-no\-tls\fP is not given.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-cacert=\fR<PATH>
|
.B \-\-cacert=<PATH>
|
||||||
Set path to trusted CA certificate file if \fB\-p\fR,
|
Set path to trusted CA certificate file if \fI\%\-p\fP,
|
||||||
\fB\-\-client\fR or \fB\-\-http2\-bridge\fR are given and
|
\fI\%\-\-client\fP or \fI\%\-\-http2\-bridge\fP are given and
|
||||||
\fB\-\-backend\-no\-tls\fR is not given. The file must be
|
\fI\%\-\-backend\-no\-tls\fP is not given. The file must be
|
||||||
in PEM format. It can contain multiple
|
in PEM format. It can contain multiple
|
||||||
certificates. If the linked OpenSSL is
|
certificates. If the linked OpenSSL is
|
||||||
configured to load system wide certificates, they
|
configured to load system wide certificates, they
|
||||||
are loaded at startup regardless of this option.
|
are loaded at startup regardless of this option.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-private\-key\-passwd\-file=\fR<FILEPATH>
|
.B \-\-private\-key\-passwd\-file=<FILEPATH>
|
||||||
Path to file that contains password for the
|
Path to file that contains password for the
|
||||||
server's private key. If none is given and the
|
server\(aqs private key. If none is given and the
|
||||||
private key is password protected it'll be
|
private key is password protected it\(aqll be
|
||||||
requested interactively.
|
requested interactively.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-subcert=\fR<KEYPATH>:<CERTPATH>
|
.B \-\-subcert=<KEYPATH>:<CERTPATH>
|
||||||
Specify additional certificate and private key
|
Specify additional certificate and private key
|
||||||
file. nghttpx will choose certificates based on
|
file. nghttpx will choose certificates based on
|
||||||
the hostname indicated by client using TLS SNI
|
the hostname indicated by client using TLS SNI
|
||||||
extension. This option can be used multiple
|
extension. This option can be used multiple
|
||||||
times.
|
times.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-tls\-sni\-field=\fR<HOST>
|
.B \-\-backend\-tls\-sni\-field=<HOST>
|
||||||
Explicitly set the content of the TLS SNI
|
Explicitly set the content of the TLS SNI
|
||||||
extension. This will default to the backend HOST
|
extension. This will default to the backend HOST
|
||||||
name.
|
name.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-dh\-param\-file=\fR<PATH>
|
.B \-\-dh\-param\-file=<PATH>
|
||||||
Path to file that contains DH parameters in PEM
|
Path to file that contains DH parameters in PEM
|
||||||
format. Without this option, DHE cipher suites
|
format. Without this option, DHE cipher suites
|
||||||
are not available.
|
are not available.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-npn\-list=\fR<LIST>
|
.B \-\-npn\-list=<LIST>
|
||||||
Comma delimited list of ALPN protocol identifier
|
Comma delimited list of ALPN protocol identifier
|
||||||
sorted in the order of preference. That means
|
sorted in the order of preference. That means
|
||||||
most desirable protocol comes first. This is
|
most desirable protocol comes first. This is
|
||||||
used in both ALPN and NPN. The parameter must be
|
used in both ALPN and NPN. The parameter must be
|
||||||
delimited by a single comma only and any white
|
delimited by a single comma only and any white
|
||||||
spaces are treated as a part of protocol string.
|
spaces are treated as a part of protocol string.
|
||||||
Default: h2\-16,h2\-14,spdy/3.1,http/1.1
|
.sp
|
||||||
|
Default: \fBh2\-16,h2\-14,spdy/3.1,http/1.1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-verify\-client\fR
|
.B \-\-verify\-client
|
||||||
Require and verify client certificate.
|
Require and verify client certificate.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-verify\-client\-cacert=\fR<PATH>
|
.B \-\-verify\-client\-cacert=<PATH>
|
||||||
Path to file that contains CA certificates to
|
Path to file that contains CA certificates to
|
||||||
verify client certificate. The file must be in
|
verify client certificate. The file must be in
|
||||||
PEM format. It can contain multiple
|
PEM format. It can contain multiple
|
||||||
certificates.
|
certificates.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-client\-private\-key\-file=\fR<PATH>
|
.B \-\-client\-private\-key\-file=<PATH>
|
||||||
Path to file that contains client private key
|
Path to file that contains client private key
|
||||||
used in backend client authentication.
|
used in backend client authentication.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-client\-cert\-file=\fR<PATH>
|
.B \-\-client\-cert\-file=<PATH>
|
||||||
Path to file that contains client certificate
|
Path to file that contains client certificate
|
||||||
used in backend client authentication.
|
used in backend client authentication.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-tls\-proto\-list=\fR<LIST>
|
.B \-\-tls\-proto\-list=<LIST>
|
||||||
Comma delimited list of SSL/TLS protocol to be
|
Comma delimited list of SSL/TLS protocol to be
|
||||||
enabled. The following protocols are available:
|
enabled. The following protocols are available:
|
||||||
TLSv1.2, TLSv1.1 and TLSv1.0. The name matching
|
TLSv1.2, TLSv1.1 and TLSv1.0. The name matching
|
||||||
|
@ -263,212 +400,362 @@ is done in case\-insensitive manner. The
|
||||||
parameter must be delimited by a single comma
|
parameter must be delimited by a single comma
|
||||||
only and any white spaces are treated as a part
|
only and any white spaces are treated as a part
|
||||||
of protocol string.
|
of protocol string.
|
||||||
Default: TLSv1.2,TLSv1.1
|
.sp
|
||||||
.SS "HTTP/2 and SPDY:"
|
Default: \fBTLSv1.2,TLSv1.1\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-c\fR, \fB\-\-http2\-max\-concurrent\-streams=\fR<NUM>
|
.B \-\-tls\-ticket\-key\-file=<FILE>
|
||||||
|
Path to file that contains 48 bytes random data
|
||||||
|
to construct TLS session ticket parameters. This
|
||||||
|
options can be used repeatedly to specify
|
||||||
|
multiple ticket parameters. If several files are
|
||||||
|
given, only the first key is used to encrypt TLS
|
||||||
|
session tickets. Other keys are accepted but
|
||||||
|
server will issue new session ticket with first
|
||||||
|
key. This allows session key rotation. Please
|
||||||
|
note that key rotation does not occur
|
||||||
|
automatically. User should rearrange files or
|
||||||
|
change options values and restart nghttpx
|
||||||
|
gracefully. If opening or reading given file
|
||||||
|
fails, all loaded keys are discarded and it is
|
||||||
|
treated as if none of this option is given. If
|
||||||
|
this option is not given or an error occurred
|
||||||
|
while opening or reading a file, key is generated
|
||||||
|
automatically and renewed every 12hrs. At most 2
|
||||||
|
keys are stored in memory.
|
||||||
|
.UNINDENT
|
||||||
|
.SS HTTP/2 and SPDY:
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \-c, \-\-http2\-max\-concurrent\-streams=<NUM>
|
||||||
Set the maximum number of the concurrent streams
|
Set the maximum number of the concurrent streams
|
||||||
in one HTTP/2 and SPDY session.
|
in one HTTP/2 and SPDY session.
|
||||||
Default: 100
|
.sp
|
||||||
|
Default: \fB100\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-http2\-window\-bits=\fR<N>
|
.B \-\-frontend\-http2\-window\-bits=<N>
|
||||||
Sets the per\-stream initial window size of HTTP/2
|
Sets the per\-stream initial window size of HTTP/2
|
||||||
SPDY frontend connection. For HTTP/2, the size
|
SPDY frontend connection. For HTTP/2, the size
|
||||||
is 2**<N>\-1. For SPDY, the size is 2**<N>.
|
is 2**<N>\-1. For SPDY, the size is 2**<N>.
|
||||||
Default: 16
|
.sp
|
||||||
|
Default: \fB16\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-http2\-connection\-window\-bits=\fR<N>
|
.B \-\-frontend\-http2\-connection\-window\-bits=<N>
|
||||||
Sets the per\-connection window size of HTTP/2 and
|
Sets the per\-connection window size of HTTP/2 and
|
||||||
SPDY frontend connection. For HTTP/2, the size
|
SPDY frontend connection. For HTTP/2, the size
|
||||||
is 2**<N>\-1. For SPDY, the size is 2**<N>.
|
is 2**<N>\-1. For SPDY, the size is 2**<N>.
|
||||||
Default: 16
|
.sp
|
||||||
|
Default: \fB16\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-no\-tls\fR
|
.B \-\-frontend\-no\-tls
|
||||||
Disable SSL/TLS on frontend connections.
|
Disable SSL/TLS on frontend connections.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-http2\-window\-bits=\fR<N>
|
.B \-\-backend\-http2\-window\-bits=<N>
|
||||||
Sets the initial window size of HTTP/2 backend
|
Sets the initial window size of HTTP/2 backend
|
||||||
connection to 2**<N>\-1.
|
connection to 2**<N>\-1.
|
||||||
Default: 16
|
.sp
|
||||||
|
Default: \fB16\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-http2\-connection\-window\-bits=\fR<N>
|
.B \-\-backend\-http2\-connection\-window\-bits=<N>
|
||||||
Sets the per\-connection window size of HTTP/2
|
Sets the per\-connection window size of HTTP/2
|
||||||
backend connection to 2**<N>\-1.
|
backend connection to 2**<N>\-1.
|
||||||
Default: 16
|
.sp
|
||||||
|
Default: \fB16\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-backend\-no\-tls\fR
|
.B \-\-backend\-no\-tls
|
||||||
Disable SSL/TLS on backend connections.
|
Disable SSL/TLS on backend connections.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-http2\-no\-cookie\-crumbling\fR
|
.B \-\-http2\-no\-cookie\-crumbling
|
||||||
Don't crumble cookie header field.
|
Don\(aqt crumble cookie header field.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-padding=\fR<N>
|
.B \-\-padding=<N>
|
||||||
Add at most <N> bytes to a HTTP/2 frame payload
|
Add at most <N> bytes to a HTTP/2 frame payload
|
||||||
as padding. Specify 0 to disable padding. This
|
as padding. Specify 0 to disable padding. This
|
||||||
option is meant for debugging purpose and not
|
option is meant for debugging purpose and not
|
||||||
intended to enhance protocol security.
|
intended to enhance protocol security.
|
||||||
.SS "Mode:"
|
.UNINDENT
|
||||||
|
.SS Mode:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
(default mode)
|
.B (default mode)
|
||||||
Accept HTTP/2, SPDY and HTTP/1.1 over SSL/TLS.
|
Accept HTTP/2, SPDY and HTTP/1.1 over SSL/TLS.
|
||||||
If \fB\-\-frontend\-no\-tls\fR is used, accept HTTP/2 and
|
If \fI\%\-\-frontend\-no\-tls\fP is used, accept HTTP/2 and
|
||||||
HTTP/1.1. The incoming HTTP/1.1 connection can
|
HTTP/1.1. The incoming HTTP/1.1 connection can
|
||||||
be upgraded to HTTP/2 through HTTP Upgrade. The
|
be upgraded to HTTP/2 through HTTP Upgrade. The
|
||||||
protocol to the backend is HTTP/1.1.
|
protocol to the backend is HTTP/1.1.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-s\fR, \fB\-\-http2\-proxy\fR
|
.B \-s, \-\-http2\-proxy
|
||||||
Like default mode, but enable secure proxy mode.
|
Like default mode, but enable secure proxy mode.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-http2\-bridge\fR
|
.B \-\-http2\-bridge
|
||||||
Like default mode, but communicate with the
|
Like default mode, but communicate with the
|
||||||
backend in HTTP/2 over SSL/TLS. Thus the
|
backend in HTTP/2 over SSL/TLS. Thus the
|
||||||
incoming all connections are converted to HTTP/2
|
incoming all connections are converted to HTTP/2
|
||||||
connection and relayed to the backend. See
|
connection and relayed to the backend. See
|
||||||
\fB\-\-backend\-http\-proxy\-uri\fR option if you are behind
|
\fI\%\-\-backend\-http\-proxy\-uri\fP option if you are behind
|
||||||
the proxy and want to connect to the outside
|
the proxy and want to connect to the outside
|
||||||
HTTP/2 proxy.
|
HTTP/2 proxy.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-client\fR
|
.B \-\-client
|
||||||
Accept HTTP/2 and HTTP/1.1 without SSL/TLS. The
|
Accept HTTP/2 and HTTP/1.1 without SSL/TLS. The
|
||||||
incoming HTTP/1.1 connection can be upgraded to
|
incoming HTTP/1.1 connection can be upgraded to
|
||||||
HTTP/2 connection through HTTP Upgrade. The
|
HTTP/2 connection through HTTP Upgrade. The
|
||||||
protocol to the backend is HTTP/2. To use
|
protocol to the backend is HTTP/2. To use
|
||||||
nghttpx as a forward proxy, use \fB\-p\fR option
|
nghttpx as a forward proxy, use \fI\%\-p\fP option
|
||||||
instead.
|
instead.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-p\fR, \fB\-\-client\-proxy\fR
|
.B \-p, \-\-client\-proxy
|
||||||
Like \fB\-\-client\fR option, but it also requires the
|
Like \fI\%\-\-client\fP option, but it also requires the
|
||||||
request path from frontend must be an absolute
|
request path from frontend must be an absolute
|
||||||
URI, suitable for use as a forward proxy.
|
URI, suitable for use as a forward proxy.
|
||||||
.SS "Logging:"
|
.UNINDENT
|
||||||
|
.SS Logging:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-L\fR, \fB\-\-log\-level=\fR<LEVEL>
|
.B \-L, \-\-log\-level=<LEVEL>
|
||||||
Set the severity level of log output. <LEVEL>
|
Set the severity level of log output. <LEVEL>
|
||||||
must be one of INFO, NOTICE, WARN, ERROR and
|
must be one of INFO, NOTICE, WARN, ERROR and
|
||||||
FATAL.
|
FATAL.
|
||||||
Default: NOTICE
|
.sp
|
||||||
|
Default: \fBNOTICE\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-accesslog\-file=\fR<PATH>
|
.B \-\-accesslog\-file=<PATH>
|
||||||
Set path to write access log. To reopen file,
|
Set path to write access log. To reopen file,
|
||||||
send USR1 signal to nghttpx.
|
send USR1 signal to nghttpx.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-accesslog\-syslog\fR
|
.B \-\-accesslog\-syslog
|
||||||
Send access log to syslog. If this option is
|
Send access log to syslog. If this option is
|
||||||
used, \fB\-\-access\-file\fR option is ignored.
|
used, \fI\%\-\-accesslog\-file\fP option is ignored.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-accesslog\-format=\fR<FORMAT>
|
.B \-\-accesslog\-format=<FORMAT>
|
||||||
Specify format string for access log. The
|
Specify format string for access log. The
|
||||||
default format is combined format. The following
|
default format is combined format. The following
|
||||||
variables are available:
|
variables are available:
|
||||||
|
.INDENT 7.0
|
||||||
|
.IP \(bu 2
|
||||||
$remote_addr: client IP address.
|
$remote_addr: client IP address.
|
||||||
|
.IP \(bu 2
|
||||||
$time_local: local time in Common Log format.
|
$time_local: local time in Common Log format.
|
||||||
|
.IP \(bu 2
|
||||||
$time_iso8601: local time in ISO 8601 format.
|
$time_iso8601: local time in ISO 8601 format.
|
||||||
|
.IP \(bu 2
|
||||||
$request: HTTP request line.
|
$request: HTTP request line.
|
||||||
|
.IP \(bu 2
|
||||||
$status: HTTP response status code.
|
$status: HTTP response status code.
|
||||||
|
.IP \(bu 2
|
||||||
$body_bytes_sent: the number of bytes sent to
|
$body_bytes_sent: the number of bytes sent to
|
||||||
client as response body.
|
client as response body.
|
||||||
|
.IP \(bu 2
|
||||||
$http_<VAR>: value of HTTP request header <VAR>
|
$http_<VAR>: value of HTTP request header <VAR>
|
||||||
where '_' in <VAR> is replaced with '\-'.
|
where \(aq_\(aq in <VAR> is replaced with \(aq\-\(aq.
|
||||||
|
.IP \(bu 2
|
||||||
$remote_port: client port.
|
$remote_port: client port.
|
||||||
|
.IP \(bu 2
|
||||||
$server_port: server port.
|
$server_port: server port.
|
||||||
|
.IP \(bu 2
|
||||||
$request_time: request processing time in
|
$request_time: request processing time in
|
||||||
seconds with milliseconds resolution.
|
seconds with milliseconds resolution.
|
||||||
|
.IP \(bu 2
|
||||||
$pid: PID of the running process.
|
$pid: PID of the running process.
|
||||||
$alpn: ALPN identifier of the protocol which
|
.IP \(bu 2
|
||||||
generates the response. For HTTP/1, ALPN is
|
$alpn: ALPN identifier of the protocol which
|
||||||
|
generates the response. For HTTP/1, ALPN is
|
||||||
always http/1.1, regardless of minor version.
|
always http/1.1, regardless of minor version.
|
||||||
Default: $remote_addr \- \- [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
Default: \fB$remote_addr \- \- [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-errorlog\-file=\fR<PATH>
|
.B \-\-errorlog\-file=<PATH>
|
||||||
Set path to write error log. To reopen file,
|
Set path to write error log. To reopen file,
|
||||||
send USR1 signal to nghttpx.
|
send USR1 signal to nghttpx.
|
||||||
Default: \fI\,/dev/stderr\/\fP
|
.sp
|
||||||
|
Default: \fB/dev/stderr\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-errorlog\-syslog\fR
|
.B \-\-errorlog\-syslog
|
||||||
Send error log to syslog. If this option is
|
Send error log to syslog. If this option is
|
||||||
used, \fB\-\-errorlog\-file\fR option is ignored.
|
used, \fI\%\-\-errorlog\-file\fP option is ignored.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-syslog\-facility=\fR<FACILITY>
|
.B \-\-syslog\-facility=<FACILITY>
|
||||||
Set syslog facility to <FACILITY>.
|
Set syslog facility to <FACILITY>.
|
||||||
Default: daemon
|
.sp
|
||||||
.SS "Misc:"
|
Default: \fBdaemon\fP
|
||||||
|
.UNINDENT
|
||||||
|
.SS Misc:
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-add\-x\-forwarded\-for\fR
|
.B \-\-add\-x\-forwarded\-for
|
||||||
Append X\-Forwarded\-For header field to the
|
Append X\-Forwarded\-For header field to the
|
||||||
downstream request.
|
downstream request.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-strip\-incoming\-x\-forwarded\-for\fR
|
.B \-\-strip\-incoming\-x\-forwarded\-for
|
||||||
Strip X\-Forwarded\-For header field from inbound
|
Strip X\-Forwarded\-For header field from inbound
|
||||||
client requests.
|
client requests.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-via\fR
|
.B \-\-no\-via
|
||||||
Don't append to Via header field. If Via header
|
Don\(aqt append to Via header field. If Via header
|
||||||
field is received, it is left unaltered.
|
field is received, it is left unaltered.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-location\-rewrite\fR
|
.B \-\-no\-location\-rewrite
|
||||||
Don't rewrite location header field on
|
Don\(aqt rewrite location header field on
|
||||||
\fB\-\-http2\-bridge\fR, \fB\-\-client\fR and default mode. For
|
\fI\%\-\-http2\-bridge\fP, \fI\%\-\-client\fP and default mode. For
|
||||||
\fB\-\-http2\-proxy\fR and \fB\-\-client\-proxy\fR mode, location
|
\fI\%\-\-http2\-proxy\fP and \fI\%\-\-client\-proxy\fP mode, location
|
||||||
header field will not be altered regardless of
|
header field will not be altered regardless of
|
||||||
this option.
|
this option.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-altsvc=\fR<PROTOID,PORT[,HOST,[ORIGIN]]>
|
.B \-\-altsvc=<PROTOID,PORT[,HOST,[ORIGIN]]>
|
||||||
Specify protocol ID, port, host and origin of
|
Specify protocol ID, port, host and origin of
|
||||||
alternative service. <HOST> and <ORIGIN> are
|
alternative service. <HOST> and <ORIGIN> are
|
||||||
optional. They are advertised in alt\-svc header
|
optional. They are advertised in alt\-svc header
|
||||||
field or HTTP/2 ALTSVC frame. This option can be
|
field or HTTP/2 ALTSVC frame. This option can be
|
||||||
used multiple times to specify multiple
|
used multiple times to specify multiple
|
||||||
alternative services. Example: \fB\-\-altsvc\fR=\fI\,h2\/\fR,443
|
alternative services. Example: \fI\%\-\-altsvc\fP=h2,443
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-add\-response\-header=\fR<HEADER>
|
.B \-\-add\-response\-header=<HEADER>
|
||||||
Specify additional header field to add to
|
Specify additional header field to add to
|
||||||
response header set. This option just appends
|
response header set. This option just appends
|
||||||
header field and won't replace anything already
|
header field and won\(aqt replace anything already
|
||||||
set. This option can be used several times to
|
set. This option can be used several times to
|
||||||
specify multiple header fields.
|
specify multiple header fields.
|
||||||
Example: \fB\-\-add\-response\-header=\fR"foo: bar"
|
Example: \fI\%\-\-add\-response\-header\fP="foo: bar"
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-http2\-dump\-request\-header=\fR<PATH>
|
.B \-\-frontend\-http2\-dump\-request\-header=<PATH>
|
||||||
Dumps request headers received by HTTP/2 frontend
|
Dumps request headers received by HTTP/2 frontend
|
||||||
to the file denoted in <PATH>. The output is
|
to the file denoted in <PATH>. The output is
|
||||||
done in HTTP/1 header field format and each
|
done in HTTP/1 header field format and each
|
||||||
header block is followed by an empty line. This
|
header block is followed by an empty line. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option \fB\-n\fR<N>, where <N> >= 2.
|
with option \fI\%\-n\fP<N>, where <N> >= 2.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-frontend\-http2\-dump\-response\-header=\fR<PATH>
|
.B \-\-frontend\-http2\-dump\-response\-header=<PATH>
|
||||||
Dumps response headers sent from HTTP/2 frontend
|
Dumps response headers sent from HTTP/2 frontend
|
||||||
to the file denoted in <PATH>. The output is
|
to the file denoted in <PATH>. The output is
|
||||||
done in HTTP/1 header field format and each
|
done in HTTP/1 header field format and each
|
||||||
header block is followed by an empty line. This
|
header block is followed by an empty line. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option \fB\-n\fR<N>, where <N> >= 2.
|
with option \fI\%\-n\fP<N>, where <N> >= 2.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-o\fR, \fB\-\-frontend\-frame\-debug\fR
|
.B \-o, \-\-frontend\-frame\-debug
|
||||||
Print HTTP/2 frames in frontend to stderr. This
|
Print HTTP/2 frames in frontend to stderr. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option \fB\-n\fR=\fI\,N\/\fR, where N >= 2.
|
with option \fI\%\-n\fP=N, where N >= 2.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-D\fR, \fB\-\-daemon\fR
|
.B \-D, \-\-daemon
|
||||||
Run in a background. If \fB\-D\fR is used, the current
|
Run in a background. If \fI\%\-D\fP is used, the current
|
||||||
working directory is changed to '/'.
|
working directory is changed to \(aq\fI/\fP\(aq.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-pid\-file=\fR<PATH>
|
.B \-\-pid\-file=<PATH>
|
||||||
Set path to save PID of this program.
|
Set path to save PID of this program.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-user=\fR<USER>
|
.B \-\-user=<USER>
|
||||||
Run this program as <USER>. This option is
|
Run this program as <USER>. This option is
|
||||||
intended to be used to drop root privileges.
|
intended to be used to drop root privileges.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-conf=\fR<PATH>
|
.B \-\-conf=<PATH>
|
||||||
Load configuration from <PATH>.
|
Load configuration from <PATH>.
|
||||||
Default: \fI\,/etc/nghttpx/nghttpx.conf\/\fP
|
.sp
|
||||||
|
Default: \fB/etc/nghttpx/nghttpx.conf\fP
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR, \fB\-\-version\fR
|
.B \-v, \-\-version
|
||||||
Print version and exit.
|
Print version and exit.
|
||||||
|
.UNINDENT
|
||||||
|
.INDENT 0.0
|
||||||
.TP
|
.TP
|
||||||
\fB\-h\fR, \fB\-\-help\fR
|
.B \-h, \-\-help
|
||||||
Print this help and exit.
|
Print this help and exit.
|
||||||
.SH "SEE ALSO"
|
.UNINDENT
|
||||||
|
.SH FILES
|
||||||
nghttp(1), nghttpd(1), h2load(1)
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B \fI/etc/nghttpx/nghttpx.conf\fP
|
||||||
|
The default configuration file path nghttpx searches at startup.
|
||||||
|
The configuration file path can be changed using \fI\%\-\-conf\fP
|
||||||
|
option.
|
||||||
|
.UNINDENT
|
||||||
|
.SH SIGNALS
|
||||||
|
.INDENT 0.0
|
||||||
|
.TP
|
||||||
|
.B SIGQUIT
|
||||||
|
Shutdown gracefully. First accept pending connections and stop
|
||||||
|
accepting connection. After all connections are handled, nghttpx
|
||||||
|
exits.
|
||||||
|
.TP
|
||||||
|
.B SIGUSR1
|
||||||
|
Reopen log files.
|
||||||
|
.TP
|
||||||
|
.B SIGUSR2
|
||||||
|
Fork and execute nghttpx. It will execute the binary in the same
|
||||||
|
path. After new process comes up, sending SIGQUIT to the original
|
||||||
|
process to perform hotswap.
|
||||||
|
.UNINDENT
|
||||||
|
.SH SEE ALSO
|
||||||
|
.sp
|
||||||
|
\fInghttp(1)\fP, \fInghttpd(1)\fP, \fIh2load(1)\fP
|
||||||
|
.SH AUTHOR
|
||||||
|
Tatsuhiro Tsujikawa
|
||||||
|
.SH COPYRIGHT
|
||||||
|
2012, 2014, Tatsuhiro Tsujikawa
|
||||||
|
.\" Generated by docutils manpage writer.
|
||||||
|
.
|
||||||
|
|
|
@ -1,80 +1,72 @@
|
||||||
.. DO NOT MODIFY THIS FILE! It was generated by man2rst.py
|
|
||||||
|
|
||||||
.. program:: nghttpx
|
|
||||||
|
|
||||||
nghttpx(1)
|
nghttpx(1)
|
||||||
==========
|
==========
|
||||||
|
|
||||||
NAME
|
|
||||||
----
|
|
||||||
nghttpx - HTTP/2 experimental proxy
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**nghttpx** [OPTIONS]... [<PRIVATE_KEY> <CERT>]
|
**nghttpx** [OPTIONS]... [<PRIVATE_KEY> <CERT>]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
A reverse proxy for HTTP/2, HTTP/1 and SPDY.
|
A reverse proxy for HTTP/2, HTTP/1 and SPDY.
|
||||||
|
|
||||||
.. option:: PRIVATE_KEY
|
.. describe:: <PRIVATE_KEY>
|
||||||
|
|
||||||
Set path to server's private key. Required
|
Set path to server's private key. Required
|
||||||
unless :option:`-p`, :option:`--client` or :option:`--frontend-no-tls` are
|
unless :option:`-p`\, :option:`--client` or :option:`\--frontend-no-tls` are
|
||||||
given.
|
given.
|
||||||
|
|
||||||
.. option:: CERT
|
.. describe:: <CERT>
|
||||||
|
|
||||||
Set path to server's certificate. Required
|
Set path to server's certificate. Required
|
||||||
unless :option:`-p`, :option:`--client` or :option:`--frontend-no-tls` are
|
unless :option:`-p`\, :option:`--client` or :option:`\--frontend-no-tls` are
|
||||||
given.
|
given.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS:
|
||||||
-------
|
--------
|
||||||
|
|
||||||
The options are categorized into several groups.
|
The options are categorized into several groups.
|
||||||
|
|
||||||
Connections
|
Connections:
|
||||||
^^^^^^^^^^^
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
.. option:: -b, --backend=<HOST,PORT>
|
.. option:: -b, --backend=<HOST,PORT>
|
||||||
|
|
||||||
|
|
||||||
Set backend host and port. For HTTP/1 backend,
|
Set backend host and port. For HTTP/1 backend,
|
||||||
multiple backend addresses are accepted by
|
multiple backend addresses are accepted by
|
||||||
repeating this option. HTTP/2 backend does not
|
repeating this option. HTTP/2 backend does not
|
||||||
support multiple backend addresses and the first
|
support multiple backend addresses and the first
|
||||||
occurrence of this option is used.
|
occurrence of this option is used.
|
||||||
Default: '127.0.0.1,80'
|
|
||||||
|
Default: ``127.0.0.1,80``
|
||||||
|
|
||||||
.. option:: -f, --frontend=<HOST,PORT>
|
.. option:: -f, --frontend=<HOST,PORT>
|
||||||
|
|
||||||
|
|
||||||
Set frontend host and port. If <HOST> is '\*', it
|
Set frontend host and port. If <HOST> is '\*', it
|
||||||
assumes all addresses including both IPv4 and
|
assumes all addresses including both IPv4 and
|
||||||
IPv6.
|
IPv6.
|
||||||
Default: '\*,3000'
|
|
||||||
|
Default: ``*,3000``
|
||||||
|
|
||||||
.. option:: --backlog=<NUM>
|
.. option:: --backlog=<NUM>
|
||||||
|
|
||||||
|
Set listen backlog size. If :option:`-1` is given,
|
||||||
Set listen backlog size. If -1 is given,
|
|
||||||
libevent will choose suitable value.
|
libevent will choose suitable value.
|
||||||
Default: 128
|
|
||||||
|
Default: ``128``
|
||||||
|
|
||||||
.. option:: --backend-ipv4
|
.. option:: --backend-ipv4
|
||||||
|
|
||||||
|
|
||||||
Resolve backend hostname to IPv4 address only.
|
Resolve backend hostname to IPv4 address only.
|
||||||
|
|
||||||
.. option:: --backend-ipv6
|
.. option:: --backend-ipv6
|
||||||
|
|
||||||
|
|
||||||
Resolve backend hostname to IPv6 address only.
|
Resolve backend hostname to IPv6 address only.
|
||||||
|
|
||||||
.. option:: --backend-http-proxy-uri=<URI>
|
.. option:: --backend-http-proxy-uri=<URI>
|
||||||
|
|
||||||
|
|
||||||
Specify proxy URI in the form
|
Specify proxy URI in the form
|
||||||
http://[<USER>:<PASS>@]<PROXY>:<PORT>. If a
|
http://[<USER>:<PASS>@]<PROXY>:<PORT>. If a
|
||||||
proxy requires authentication, specify <USER> and
|
proxy requires authentication, specify <USER> and
|
||||||
|
@ -90,197 +82,197 @@ Connections
|
||||||
:option:`--backend-read-timeout` and
|
:option:`--backend-read-timeout` and
|
||||||
:option:`--backend-write-timeout` options.
|
:option:`--backend-write-timeout` options.
|
||||||
|
|
||||||
Performance
|
|
||||||
^^^^^^^^^^^
|
Performance:
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
.. option:: -n, --workers=<CORES>
|
.. option:: -n, --workers=<CORES>
|
||||||
|
|
||||||
|
|
||||||
Set the number of worker threads.
|
Set the number of worker threads.
|
||||||
Default: 1
|
|
||||||
|
Default: ``1``
|
||||||
|
|
||||||
.. option:: --read-rate=<RATE>
|
.. option:: --read-rate=<RATE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum average read rate on frontend
|
Set maximum average read rate on frontend
|
||||||
connection. Setting 0 to this option means read
|
connection. Setting 0 to this option means read
|
||||||
rate is unlimited.
|
rate is unlimited.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --read-burst=<SIZE>
|
.. option:: --read-burst=<SIZE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum read burst size on frontend
|
Set maximum read burst size on frontend
|
||||||
connection. Setting 0 to this option means read
|
connection. Setting 0 to this option means read
|
||||||
burst size is unlimited.
|
burst size is unlimited.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --write-rate=<RATE>
|
.. option:: --write-rate=<RATE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum average write rate on frontend
|
Set maximum average write rate on frontend
|
||||||
connection. Setting 0 to this option means write
|
connection. Setting 0 to this option means write
|
||||||
rate is unlimited.
|
rate is unlimited.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --write-burst=<SIZE>
|
.. option:: --write-burst=<SIZE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum write burst size on frontend
|
Set maximum write burst size on frontend
|
||||||
connection. Setting 0 to this option means write
|
connection. Setting 0 to this option means write
|
||||||
burst size is unlimited.
|
burst size is unlimited.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --worker-read-rate=<RATE>
|
.. option:: --worker-read-rate=<RATE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum average read rate on frontend
|
Set maximum average read rate on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means read rate is unlimited. Not implemented
|
means read rate is unlimited. Not implemented
|
||||||
yet.
|
yet.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --worker-read-burst=<SIZE>
|
.. option:: --worker-read-burst=<SIZE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum read burst size on frontend
|
Set maximum read burst size on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means read burst size is unlimited. Not
|
means read burst size is unlimited. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --worker-write-rate=<RATE>
|
.. option:: --worker-write-rate=<RATE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum average write rate on frontend
|
Set maximum average write rate on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means write rate is unlimited. Not implemented
|
means write rate is unlimited. Not implemented
|
||||||
yet.
|
yet.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --worker-write-burst=<SIZE>
|
.. option:: --worker-write-burst=<SIZE>
|
||||||
|
|
||||||
|
|
||||||
Set maximum write burst size on frontend
|
Set maximum write burst size on frontend
|
||||||
connection per worker. Setting 0 to this option
|
connection per worker. Setting 0 to this option
|
||||||
means write burst size is unlimited. Not
|
means write burst size is unlimited. Not
|
||||||
implemented yet.
|
implemented yet.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --worker-frontend-connections=<NUM>
|
.. option:: --worker-frontend-connections=<NUM>
|
||||||
|
|
||||||
|
|
||||||
Set maximum number of simultaneous connections
|
Set maximum number of simultaneous connections
|
||||||
frontend accepts. Setting 0 means unlimited.
|
frontend accepts. Setting 0 means unlimited.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --backend-http1-connections-per-host=<NUM>
|
.. option:: --backend-http1-connections-per-host=<NUM>
|
||||||
|
|
||||||
|
|
||||||
Set maximum number of backend concurrent HTTP/1
|
Set maximum number of backend concurrent HTTP/1
|
||||||
connections per host. This option is meaningful
|
connections per host. This option is meaningful
|
||||||
when :option:`-s` option is used. To limit the number of
|
when :option:`-s` option is used. To limit the number of
|
||||||
connections per frontend for default mode, use
|
connections per frontend for default mode, use
|
||||||
:option:`--backend-http1-connections-per-frontend`.
|
:option:`--backend-http1-connections-per-frontend`\.
|
||||||
Default: 8
|
|
||||||
|
Default: ``8``
|
||||||
|
|
||||||
.. option:: --backend-http1-connections-per-frontend=<NUM>
|
.. option:: --backend-http1-connections-per-frontend=<NUM>
|
||||||
|
|
||||||
|
|
||||||
Set maximum number of backend concurrent HTTP/1
|
Set maximum number of backend concurrent HTTP/1
|
||||||
connections per frontend. This option is only
|
connections per frontend. This option is only
|
||||||
used for default mode. 0 means unlimited. To
|
used for default mode. 0 means unlimited. To
|
||||||
limit the number of connections per host for
|
limit the number of connections per host for
|
||||||
HTTP/2 or SPDY proxy mode (:option:`-s` option), use
|
HTTP/2 or SPDY proxy mode (-s option), use
|
||||||
:option:`--backend-http1-connections-per-host`.
|
:option:`--backend-http1-connections-per-host`\.
|
||||||
Default: 0
|
|
||||||
|
|
||||||
Timeout
|
Default: ``0``
|
||||||
^^^^^^^
|
|
||||||
|
|
||||||
|
Timeout:
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
.. option:: --frontend-http2-read-timeout=<SEC>
|
.. option:: --frontend-http2-read-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify read timeout for HTTP/2 and SPDY frontend
|
Specify read timeout for HTTP/2 and SPDY frontend
|
||||||
connection.
|
connection.
|
||||||
Default: 180
|
|
||||||
|
Default: ``180``
|
||||||
|
|
||||||
.. option:: --frontend-read-timeout=<SEC>
|
.. option:: --frontend-read-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify read timeout for HTTP/1.1 frontend
|
Specify read timeout for HTTP/1.1 frontend
|
||||||
connection.
|
connection.
|
||||||
Default: 180
|
|
||||||
|
Default: ``180``
|
||||||
|
|
||||||
.. option:: --frontend-write-timeout=<SEC>
|
.. option:: --frontend-write-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify write timeout for all frontend
|
Specify write timeout for all frontend
|
||||||
connections.
|
connections.
|
||||||
Default: 30
|
|
||||||
|
Default: ``30``
|
||||||
|
|
||||||
.. option:: --stream-read-timeout=<SEC>
|
.. option:: --stream-read-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify read timeout for HTTP/2 and SPDY streams.
|
Specify read timeout for HTTP/2 and SPDY streams.
|
||||||
0 means no timeout.
|
0 means no timeout.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --stream-write-timeout=<SEC>
|
.. option:: --stream-write-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify write timeout for HTTP/2 and SPDY
|
Specify write timeout for HTTP/2 and SPDY
|
||||||
streams. 0 means no timeout.
|
streams. 0 means no timeout.
|
||||||
Default: 0
|
|
||||||
|
Default: ``0``
|
||||||
|
|
||||||
.. option:: --backend-read-timeout=<SEC>
|
.. option:: --backend-read-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify read timeout for backend connection.
|
Specify read timeout for backend connection.
|
||||||
Default: 180
|
|
||||||
|
Default: ``180``
|
||||||
|
|
||||||
.. option:: --backend-write-timeout=<SEC>
|
.. option:: --backend-write-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify write timeout for backend connection.
|
Specify write timeout for backend connection.
|
||||||
Default: 30
|
|
||||||
|
Default: ``30``
|
||||||
|
|
||||||
.. option:: --backend-keep-alive-timeout=<SEC>
|
.. option:: --backend-keep-alive-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
Specify keep-alive timeout for backend
|
Specify keep-alive timeout for backend
|
||||||
connection.
|
connection.
|
||||||
Default: 600
|
|
||||||
|
Default: ``600``
|
||||||
|
|
||||||
.. option:: --listener-disable-timeout=<SEC>
|
.. option:: --listener-disable-timeout=<SEC>
|
||||||
|
|
||||||
|
|
||||||
After accepting connection failed, connection
|
After accepting connection failed, connection
|
||||||
listener is disabled for a given time in seconds.
|
listener is disabled for a given time in seconds.
|
||||||
Specifying 0 disables this feature.
|
Specifying 0 disables this feature.
|
||||||
Default: 0
|
|
||||||
|
|
||||||
SSL/TLS
|
Default: ``0``
|
||||||
^^^^^^^
|
|
||||||
|
|
||||||
|
SSL/TLS:
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
.. option:: --ciphers=<SUITE>
|
.. option:: --ciphers=<SUITE>
|
||||||
|
|
||||||
|
|
||||||
Set allowed cipher list. The format of the
|
Set allowed cipher list. The format of the
|
||||||
string is described in OpenSSL ciphers(1).
|
string is described in OpenSSL ciphers(1).
|
||||||
|
|
||||||
.. option:: -k, --insecure
|
.. option:: -k, --insecure
|
||||||
|
|
||||||
|
Don't verify backend server's certificate if :option:`-p`\,
|
||||||
Don't verify backend server's certificate if :option:`-p`,
|
:option:`--client` or :option:`\--http2-bridge` are given and
|
||||||
:option:`--client` or :option:`--http2-bridge` are given and
|
|
||||||
:option:`--backend-no-tls` is not given.
|
:option:`--backend-no-tls` is not given.
|
||||||
|
|
||||||
.. option:: --cacert=<PATH>
|
.. option:: --cacert=<PATH>
|
||||||
|
|
||||||
|
Set path to trusted CA certificate file if :option:`-p`\,
|
||||||
Set path to trusted CA certificate file if :option:`-p`,
|
:option:`--client` or :option:`\--http2-bridge` are given and
|
||||||
:option:`--client` or :option:`--http2-bridge` are given and
|
|
||||||
:option:`--backend-no-tls` is not given. The file must be
|
:option:`--backend-no-tls` is not given. The file must be
|
||||||
in PEM format. It can contain multiple
|
in PEM format. It can contain multiple
|
||||||
certificates. If the linked OpenSSL is
|
certificates. If the linked OpenSSL is
|
||||||
|
@ -289,7 +281,6 @@ SSL/TLS
|
||||||
|
|
||||||
.. option:: --private-key-passwd-file=<FILEPATH>
|
.. option:: --private-key-passwd-file=<FILEPATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains password for the
|
Path to file that contains password for the
|
||||||
server's private key. If none is given and the
|
server's private key. If none is given and the
|
||||||
private key is password protected it'll be
|
private key is password protected it'll be
|
||||||
|
@ -297,7 +288,6 @@ SSL/TLS
|
||||||
|
|
||||||
.. option:: --subcert=<KEYPATH>:<CERTPATH>
|
.. option:: --subcert=<KEYPATH>:<CERTPATH>
|
||||||
|
|
||||||
|
|
||||||
Specify additional certificate and private key
|
Specify additional certificate and private key
|
||||||
file. nghttpx will choose certificates based on
|
file. nghttpx will choose certificates based on
|
||||||
the hostname indicated by client using TLS SNI
|
the hostname indicated by client using TLS SNI
|
||||||
|
@ -306,37 +296,33 @@ SSL/TLS
|
||||||
|
|
||||||
.. option:: --backend-tls-sni-field=<HOST>
|
.. option:: --backend-tls-sni-field=<HOST>
|
||||||
|
|
||||||
|
|
||||||
Explicitly set the content of the TLS SNI
|
Explicitly set the content of the TLS SNI
|
||||||
extension. This will default to the backend HOST
|
extension. This will default to the backend HOST
|
||||||
name.
|
name.
|
||||||
|
|
||||||
.. option:: --dh-param-file=<PATH>
|
.. option:: --dh-param-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains DH parameters in PEM
|
Path to file that contains DH parameters in PEM
|
||||||
format. Without this option, DHE cipher suites
|
format. Without this option, DHE cipher suites
|
||||||
are not available.
|
are not available.
|
||||||
|
|
||||||
.. option:: --npn-list=<LIST>
|
.. option:: --npn-list=<LIST>
|
||||||
|
|
||||||
|
|
||||||
Comma delimited list of ALPN protocol identifier
|
Comma delimited list of ALPN protocol identifier
|
||||||
sorted in the order of preference. That means
|
sorted in the order of preference. That means
|
||||||
most desirable protocol comes first. This is
|
most desirable protocol comes first. This is
|
||||||
used in both ALPN and NPN. The parameter must be
|
used in both ALPN and NPN. The parameter must be
|
||||||
delimited by a single comma only and any white
|
delimited by a single comma only and any white
|
||||||
spaces are treated as a part of protocol string.
|
spaces are treated as a part of protocol string.
|
||||||
Default: h2-16,h2-14,spdy/3.1,http/1.1
|
|
||||||
|
Default: ``h2-16,h2-14,spdy/3.1,http/1.1``
|
||||||
|
|
||||||
.. option:: --verify-client
|
.. option:: --verify-client
|
||||||
|
|
||||||
|
|
||||||
Require and verify client certificate.
|
Require and verify client certificate.
|
||||||
|
|
||||||
.. option:: --verify-client-cacert=<PATH>
|
.. option:: --verify-client-cacert=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains CA certificates to
|
Path to file that contains CA certificates to
|
||||||
verify client certificate. The file must be in
|
verify client certificate. The file must be in
|
||||||
PEM format. It can contain multiple
|
PEM format. It can contain multiple
|
||||||
|
@ -344,19 +330,16 @@ SSL/TLS
|
||||||
|
|
||||||
.. option:: --client-private-key-file=<PATH>
|
.. option:: --client-private-key-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains client private key
|
Path to file that contains client private key
|
||||||
used in backend client authentication.
|
used in backend client authentication.
|
||||||
|
|
||||||
.. option:: --client-cert-file=<PATH>
|
.. option:: --client-cert-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Path to file that contains client certificate
|
Path to file that contains client certificate
|
||||||
used in backend client authentication.
|
used in backend client authentication.
|
||||||
|
|
||||||
.. option:: --tls-proto-list=<LIST>
|
.. option:: --tls-proto-list=<LIST>
|
||||||
|
|
||||||
|
|
||||||
Comma delimited list of SSL/TLS protocol to be
|
Comma delimited list of SSL/TLS protocol to be
|
||||||
enabled. The following protocols are available:
|
enabled. The following protocols are available:
|
||||||
TLSv1.2, TLSv1.1 and TLSv1.0. The name matching
|
TLSv1.2, TLSv1.1 and TLSv1.0. The name matching
|
||||||
|
@ -364,73 +347,93 @@ SSL/TLS
|
||||||
parameter must be delimited by a single comma
|
parameter must be delimited by a single comma
|
||||||
only and any white spaces are treated as a part
|
only and any white spaces are treated as a part
|
||||||
of protocol string.
|
of protocol string.
|
||||||
Default: TLSv1.2,TLSv1.1
|
|
||||||
|
|
||||||
HTTP/2 and SPDY
|
Default: ``TLSv1.2,TLSv1.1``
|
||||||
^^^^^^^^^^^^^^^
|
|
||||||
|
.. option:: --tls-ticket-key-file=<FILE>
|
||||||
|
|
||||||
|
Path to file that contains 48 bytes random data
|
||||||
|
to construct TLS session ticket parameters. This
|
||||||
|
options can be used repeatedly to specify
|
||||||
|
multiple ticket parameters. If several files are
|
||||||
|
given, only the first key is used to encrypt TLS
|
||||||
|
session tickets. Other keys are accepted but
|
||||||
|
server will issue new session ticket with first
|
||||||
|
key. This allows session key rotation. Please
|
||||||
|
note that key rotation does not occur
|
||||||
|
automatically. User should rearrange files or
|
||||||
|
change options values and restart nghttpx
|
||||||
|
gracefully. If opening or reading given file
|
||||||
|
fails, all loaded keys are discarded and it is
|
||||||
|
treated as if none of this option is given. If
|
||||||
|
this option is not given or an error occurred
|
||||||
|
while opening or reading a file, key is generated
|
||||||
|
automatically and renewed every 12hrs. At most 2
|
||||||
|
keys are stored in memory.
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/2 and SPDY:
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
.. option:: -c, --http2-max-concurrent-streams=<NUM>
|
.. option:: -c, --http2-max-concurrent-streams=<NUM>
|
||||||
|
|
||||||
|
|
||||||
Set the maximum number of the concurrent streams
|
Set the maximum number of the concurrent streams
|
||||||
in one HTTP/2 and SPDY session.
|
in one HTTP/2 and SPDY session.
|
||||||
Default: 100
|
|
||||||
|
Default: ``100``
|
||||||
|
|
||||||
.. option:: --frontend-http2-window-bits=<N>
|
.. option:: --frontend-http2-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the per-stream initial window size of HTTP/2
|
Sets the per-stream initial window size of HTTP/2
|
||||||
SPDY frontend connection. For HTTP/2, the size
|
SPDY frontend connection. For HTTP/2, the size
|
||||||
is 2\*\*<N>-1. For SPDY, the size is 2\*\*<N>.
|
is 2**<N>-1. For SPDY, the size is 2\*\*<N>.
|
||||||
Default: 16
|
|
||||||
|
Default: ``16``
|
||||||
|
|
||||||
.. option:: --frontend-http2-connection-window-bits=<N>
|
.. option:: --frontend-http2-connection-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the per-connection window size of HTTP/2 and
|
Sets the per-connection window size of HTTP/2 and
|
||||||
SPDY frontend connection. For HTTP/2, the size
|
SPDY frontend connection. For HTTP/2, the size
|
||||||
is 2\*\*<N>-1. For SPDY, the size is 2\*\*<N>.
|
is 2**<N>-1. For SPDY, the size is 2\*\*<N>.
|
||||||
Default: 16
|
|
||||||
|
Default: ``16``
|
||||||
|
|
||||||
.. option:: --frontend-no-tls
|
.. option:: --frontend-no-tls
|
||||||
|
|
||||||
|
|
||||||
Disable SSL/TLS on frontend connections.
|
Disable SSL/TLS on frontend connections.
|
||||||
|
|
||||||
.. option:: --backend-http2-window-bits=<N>
|
.. option:: --backend-http2-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the initial window size of HTTP/2 backend
|
Sets the initial window size of HTTP/2 backend
|
||||||
connection to 2\*\*<N>-1.
|
connection to 2**<N>-1.
|
||||||
Default: 16
|
|
||||||
|
Default: ``16``
|
||||||
|
|
||||||
.. option:: --backend-http2-connection-window-bits=<N>
|
.. option:: --backend-http2-connection-window-bits=<N>
|
||||||
|
|
||||||
|
|
||||||
Sets the per-connection window size of HTTP/2
|
Sets the per-connection window size of HTTP/2
|
||||||
backend connection to 2\*\*<N>-1.
|
backend connection to 2\*\*<N>-1.
|
||||||
Default: 16
|
|
||||||
|
Default: ``16``
|
||||||
|
|
||||||
.. option:: --backend-no-tls
|
.. option:: --backend-no-tls
|
||||||
|
|
||||||
|
|
||||||
Disable SSL/TLS on backend connections.
|
Disable SSL/TLS on backend connections.
|
||||||
|
|
||||||
.. option:: --http2-no-cookie-crumbling
|
.. option:: --http2-no-cookie-crumbling
|
||||||
|
|
||||||
|
|
||||||
Don't crumble cookie header field.
|
Don't crumble cookie header field.
|
||||||
|
|
||||||
.. option:: --padding=<N>
|
.. option:: --padding=<N>
|
||||||
|
|
||||||
|
|
||||||
Add at most <N> bytes to a HTTP/2 frame payload
|
Add at most <N> bytes to a HTTP/2 frame payload
|
||||||
as padding. Specify 0 to disable padding. This
|
as padding. Specify 0 to disable padding. This
|
||||||
option is meant for debugging purpose and not
|
option is meant for debugging purpose and not
|
||||||
intended to enhance protocol security.
|
intended to enhance protocol security.
|
||||||
|
|
||||||
Mode
|
|
||||||
^^^^
|
Mode:
|
||||||
|
~~~~~
|
||||||
|
|
||||||
.. describe:: (default mode)
|
.. describe:: (default mode)
|
||||||
|
|
||||||
|
@ -442,12 +445,10 @@ Mode
|
||||||
|
|
||||||
.. option:: -s, --http2-proxy
|
.. option:: -s, --http2-proxy
|
||||||
|
|
||||||
|
|
||||||
Like default mode, but enable secure proxy mode.
|
Like default mode, but enable secure proxy mode.
|
||||||
|
|
||||||
.. option:: --http2-bridge
|
.. option:: --http2-bridge
|
||||||
|
|
||||||
|
|
||||||
Like default mode, but communicate with the
|
Like default mode, but communicate with the
|
||||||
backend in HTTP/2 over SSL/TLS. Thus the
|
backend in HTTP/2 over SSL/TLS. Thus the
|
||||||
incoming all connections are converted to HTTP/2
|
incoming all connections are converted to HTTP/2
|
||||||
|
@ -458,7 +459,6 @@ Mode
|
||||||
|
|
||||||
.. option:: --client
|
.. option:: --client
|
||||||
|
|
||||||
|
|
||||||
Accept HTTP/2 and HTTP/1.1 without SSL/TLS. The
|
Accept HTTP/2 and HTTP/1.1 without SSL/TLS. The
|
||||||
incoming HTTP/1.1 connection can be upgraded to
|
incoming HTTP/1.1 connection can be upgraded to
|
||||||
HTTP/2 connection through HTTP Upgrade. The
|
HTTP/2 connection through HTTP Upgrade. The
|
||||||
|
@ -468,189 +468,199 @@ Mode
|
||||||
|
|
||||||
.. option:: -p, --client-proxy
|
.. option:: -p, --client-proxy
|
||||||
|
|
||||||
|
|
||||||
Like :option:`--client` option, but it also requires the
|
Like :option:`--client` option, but it also requires the
|
||||||
request path from frontend must be an absolute
|
request path from frontend must be an absolute
|
||||||
URI, suitable for use as a forward proxy.
|
URI, suitable for use as a forward proxy.
|
||||||
|
|
||||||
Logging
|
|
||||||
^^^^^^^
|
Logging:
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
.. option:: -L, --log-level=<LEVEL>
|
.. option:: -L, --log-level=<LEVEL>
|
||||||
|
|
||||||
|
|
||||||
Set the severity level of log output. <LEVEL>
|
Set the severity level of log output. <LEVEL>
|
||||||
must be one of INFO, NOTICE, WARN, ERROR and
|
must be one of INFO, NOTICE, WARN, ERROR and
|
||||||
FATAL.
|
FATAL.
|
||||||
Default: NOTICE
|
|
||||||
|
Default: ``NOTICE``
|
||||||
|
|
||||||
.. option:: --accesslog-file=<PATH>
|
.. option:: --accesslog-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Set path to write access log. To reopen file,
|
Set path to write access log. To reopen file,
|
||||||
send USR1 signal to nghttpx.
|
send USR1 signal to nghttpx.
|
||||||
|
|
||||||
.. option:: --accesslog-syslog
|
.. option:: --accesslog-syslog
|
||||||
|
|
||||||
|
|
||||||
Send access log to syslog. If this option is
|
Send access log to syslog. If this option is
|
||||||
used, :option:`--access-file` option is ignored.
|
used, :option:`--accesslog-file` option is ignored.
|
||||||
|
|
||||||
.. option:: --accesslog-format=<FORMAT>
|
.. option:: --accesslog-format=<FORMAT>
|
||||||
|
|
||||||
|
|
||||||
Specify format string for access log. The
|
Specify format string for access log. The
|
||||||
default format is combined format. The following
|
default format is combined format. The following
|
||||||
variables are available:
|
variables are available:
|
||||||
$remote_addr: client IP address.
|
|
||||||
$time_local: local time in Common Log format.
|
* $remote_addr: client IP address.
|
||||||
$time_iso8601: local time in ISO 8601 format.
|
* $time_local: local time in Common Log format.
|
||||||
$request: HTTP request line.
|
* $time_iso8601: local time in ISO 8601 format.
|
||||||
$status: HTTP response status code.
|
* $request: HTTP request line.
|
||||||
$body_bytes_sent: the number of bytes sent to
|
* $status: HTTP response status code.
|
||||||
client as response body.
|
* $body_bytes_sent: the number of bytes sent to
|
||||||
$http_<VAR>: value of HTTP request header <VAR>
|
client as response body.
|
||||||
where '_' in <VAR> is replaced with '-'.
|
* $http_<VAR>: value of HTTP request header <VAR>
|
||||||
$remote_port: client port.
|
where '_' in <VAR> is replaced with '-'.
|
||||||
$server_port: server port.
|
* $remote_port: client port.
|
||||||
$request_time: request processing time in
|
* $server_port: server port.
|
||||||
seconds with milliseconds resolution.
|
* $request_time: request processing time in
|
||||||
$pid: PID of the running process.
|
seconds with milliseconds resolution.
|
||||||
$alpn: ALPN identifier of the protocol which
|
* $pid: PID of the running process.
|
||||||
generates the response. For HTTP/1, ALPN is
|
* $alpn: ALPN identifier of the protocol which
|
||||||
always http/1.1, regardless of minor version.
|
generates the response. For HTTP/1, ALPN is
|
||||||
Default: $remote_addr - - [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
|
always http/1.1, regardless of minor version.
|
||||||
|
|
||||||
|
|
||||||
|
Default: ``$remote_addr - - [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"``
|
||||||
|
|
||||||
.. option:: --errorlog-file=<PATH>
|
.. option:: --errorlog-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Set path to write error log. To reopen file,
|
Set path to write error log. To reopen file,
|
||||||
send USR1 signal to nghttpx.
|
send USR1 signal to nghttpx.
|
||||||
Default: /dev/stderr
|
|
||||||
|
Default: ``/dev/stderr``
|
||||||
|
|
||||||
.. option:: --errorlog-syslog
|
.. option:: --errorlog-syslog
|
||||||
|
|
||||||
|
|
||||||
Send error log to syslog. If this option is
|
Send error log to syslog. If this option is
|
||||||
used, :option:`--errorlog-file` option is ignored.
|
used, :option:`--errorlog-file` option is ignored.
|
||||||
|
|
||||||
.. option:: --syslog-facility=<FACILITY>
|
.. option:: --syslog-facility=<FACILITY>
|
||||||
|
|
||||||
|
|
||||||
Set syslog facility to <FACILITY>.
|
Set syslog facility to <FACILITY>.
|
||||||
Default: daemon
|
|
||||||
|
|
||||||
Misc
|
Default: ``daemon``
|
||||||
^^^^
|
|
||||||
|
|
||||||
|
Misc:
|
||||||
|
~~~~~
|
||||||
|
|
||||||
.. option:: --add-x-forwarded-for
|
.. option:: --add-x-forwarded-for
|
||||||
|
|
||||||
|
|
||||||
Append X-Forwarded-For header field to the
|
Append X-Forwarded-For header field to the
|
||||||
downstream request.
|
downstream request.
|
||||||
|
|
||||||
.. option:: --strip-incoming-x-forwarded-for
|
.. option:: --strip-incoming-x-forwarded-for
|
||||||
|
|
||||||
|
|
||||||
Strip X-Forwarded-For header field from inbound
|
Strip X-Forwarded-For header field from inbound
|
||||||
client requests.
|
client requests.
|
||||||
|
|
||||||
.. option:: --no-via
|
.. option:: --no-via
|
||||||
|
|
||||||
|
|
||||||
Don't append to Via header field. If Via header
|
Don't append to Via header field. If Via header
|
||||||
field is received, it is left unaltered.
|
field is received, it is left unaltered.
|
||||||
|
|
||||||
.. option:: --no-location-rewrite
|
.. option:: --no-location-rewrite
|
||||||
|
|
||||||
|
|
||||||
Don't rewrite location header field on
|
Don't rewrite location header field on
|
||||||
:option:`--http2-bridge`, :option:`--client` and default mode. For
|
:option:`--http2-bridge`\, :option:`--client` and default mode. For
|
||||||
:option:`--http2-proxy` and :option:`--client-proxy` mode, location
|
:option:`--http2-proxy` and :option:`\--client-proxy` mode, location
|
||||||
header field will not be altered regardless of
|
header field will not be altered regardless of
|
||||||
this option.
|
this option.
|
||||||
|
|
||||||
.. option:: --altsvc=<PROTOID,PORT[,HOST,[ORIGIN]]>
|
.. option:: --altsvc=<PROTOID,PORT[,HOST,[ORIGIN]]>
|
||||||
|
|
||||||
|
|
||||||
Specify protocol ID, port, host and origin of
|
Specify protocol ID, port, host and origin of
|
||||||
alternative service. <HOST> and <ORIGIN> are
|
alternative service. <HOST> and <ORIGIN> are
|
||||||
optional. They are advertised in alt-svc header
|
optional. They are advertised in alt-svc header
|
||||||
field or HTTP/2 ALTSVC frame. This option can be
|
field or HTTP/2 ALTSVC frame. This option can be
|
||||||
used multiple times to specify multiple
|
used multiple times to specify multiple
|
||||||
alternative services. Example: --altsvc=h2,443
|
alternative services. Example: :option:`--altsvc`\=h2,443
|
||||||
|
|
||||||
.. option:: --add-response-header=<HEADER>
|
.. option:: --add-response-header=<HEADER>
|
||||||
|
|
||||||
|
|
||||||
Specify additional header field to add to
|
Specify additional header field to add to
|
||||||
response header set. This option just appends
|
response header set. This option just appends
|
||||||
header field and won't replace anything already
|
header field and won't replace anything already
|
||||||
set. This option can be used several times to
|
set. This option can be used several times to
|
||||||
specify multiple header fields.
|
specify multiple header fields.
|
||||||
Example: --add-response-header="foo: bar"
|
Example: :option:`--add-response-header`\="foo: bar"
|
||||||
|
|
||||||
.. option:: --frontend-http2-dump-request-header=<PATH>
|
.. option:: --frontend-http2-dump-request-header=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Dumps request headers received by HTTP/2 frontend
|
Dumps request headers received by HTTP/2 frontend
|
||||||
to the file denoted in <PATH>. The output is
|
to the file denoted in <PATH>. The output is
|
||||||
done in HTTP/1 header field format and each
|
done in HTTP/1 header field format and each
|
||||||
header block is followed by an empty line. This
|
header block is followed by an empty line. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option -n<N>, where <N> >= 2.
|
with option :option:`-n`\<N>, where <N> >= 2.
|
||||||
|
|
||||||
.. option:: --frontend-http2-dump-response-header=<PATH>
|
.. option:: --frontend-http2-dump-response-header=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Dumps response headers sent from HTTP/2 frontend
|
Dumps response headers sent from HTTP/2 frontend
|
||||||
to the file denoted in <PATH>. The output is
|
to the file denoted in <PATH>. The output is
|
||||||
done in HTTP/1 header field format and each
|
done in HTTP/1 header field format and each
|
||||||
header block is followed by an empty line. This
|
header block is followed by an empty line. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option -n<N>, where <N> >= 2.
|
with option :option:`-n`\<N>, where <N> >= 2.
|
||||||
|
|
||||||
.. option:: -o, --frontend-frame-debug
|
.. option:: -o, --frontend-frame-debug
|
||||||
|
|
||||||
|
|
||||||
Print HTTP/2 frames in frontend to stderr. This
|
Print HTTP/2 frames in frontend to stderr. This
|
||||||
option is not thread safe and MUST NOT be used
|
option is not thread safe and MUST NOT be used
|
||||||
with option -n=N, where N >= 2.
|
with option :option:`-n`\=N, where N >= 2.
|
||||||
|
|
||||||
.. option:: -D, --daemon
|
.. option:: -D, --daemon
|
||||||
|
|
||||||
|
|
||||||
Run in a background. If :option:`-D` is used, the current
|
Run in a background. If :option:`-D` is used, the current
|
||||||
working directory is changed to '/'.
|
working directory is changed to '*/*'.
|
||||||
|
|
||||||
.. option:: --pid-file=<PATH>
|
.. option:: --pid-file=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Set path to save PID of this program.
|
Set path to save PID of this program.
|
||||||
|
|
||||||
.. option:: --user=<USER>
|
.. option:: --user=<USER>
|
||||||
|
|
||||||
|
|
||||||
Run this program as <USER>. This option is
|
Run this program as <USER>. This option is
|
||||||
intended to be used to drop root privileges.
|
intended to be used to drop root privileges.
|
||||||
|
|
||||||
.. option:: --conf=<PATH>
|
.. option:: --conf=<PATH>
|
||||||
|
|
||||||
|
|
||||||
Load configuration from <PATH>.
|
Load configuration from <PATH>.
|
||||||
Default: /etc/nghttpx/nghttpx.conf
|
|
||||||
|
Default: ``/etc/nghttpx/nghttpx.conf``
|
||||||
|
|
||||||
.. option:: -v, --version
|
.. option:: -v, --version
|
||||||
|
|
||||||
|
|
||||||
Print version and exit.
|
Print version and exit.
|
||||||
|
|
||||||
.. option:: -h, --help
|
.. option:: -h, --help
|
||||||
|
|
||||||
|
|
||||||
Print this help and exit.
|
Print this help and exit.
|
||||||
|
|
||||||
|
FILES
|
||||||
|
-----
|
||||||
|
|
||||||
|
*/etc/nghttpx/nghttpx.conf*
|
||||||
|
The default configuration file path nghttpx searches at startup.
|
||||||
|
The configuration file path can be changed using :option:`--conf`
|
||||||
|
option.
|
||||||
|
|
||||||
|
SIGNALS
|
||||||
|
-------
|
||||||
|
|
||||||
|
SIGQUIT
|
||||||
|
Shutdown gracefully. First accept pending connections and stop
|
||||||
|
accepting connection. After all connections are handled, nghttpx
|
||||||
|
exits.
|
||||||
|
|
||||||
|
SIGUSR1
|
||||||
|
Reopen log files.
|
||||||
|
|
||||||
|
SIGUSR2
|
||||||
|
Fork and execute nghttpx. It will execute the binary in the same
|
||||||
|
path. After new process comes up, sending SIGQUIT to the original
|
||||||
|
process to perform hotswap.
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
--------
|
--------
|
||||||
|
|
||||||
nghttp(1), nghttpd(1), h2load(1)
|
:manpage:`nghttp(1)`, :manpage:`nghttpd(1)`, :manpage:`h2load(1)`
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[SEE ALSO]
|
|
||||||
|
|
||||||
nghttp(1), nghttpd(1), h2load(1)
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
FILES
|
||||||
|
-----
|
||||||
|
|
||||||
|
*/etc/nghttpx/nghttpx.conf*
|
||||||
|
The default configuration file path nghttpx searches at startup.
|
||||||
|
The configuration file path can be changed using :option:`--conf`
|
||||||
|
option.
|
||||||
|
|
||||||
|
SIGNALS
|
||||||
|
-------
|
||||||
|
|
||||||
|
SIGQUIT
|
||||||
|
Shutdown gracefully. First accept pending connections and stop
|
||||||
|
accepting connection. After all connections are handled, nghttpx
|
||||||
|
exits.
|
||||||
|
|
||||||
|
SIGUSR1
|
||||||
|
Reopen log files.
|
||||||
|
|
||||||
|
SIGUSR2
|
||||||
|
Fork and execute nghttpx. It will execute the binary in the same
|
||||||
|
path. After new process comes up, sending SIGQUIT to the original
|
||||||
|
process to perform hotswap.
|
||||||
|
|
||||||
|
SEE ALSO
|
||||||
|
--------
|
||||||
|
|
||||||
|
:manpage:`nghttp(1)`, :manpage:`nghttpd(1)`, :manpage:`h2load(1)`
|
|
@ -0,0 +1,178 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# script to produce rst file from program's help output.
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
arg_indent = ' ' * 21
|
||||||
|
|
||||||
|
def help2man(infile):
|
||||||
|
# We assume that first line is usage line like this:
|
||||||
|
#
|
||||||
|
# Usage: nghttp [OPTIONS]... URI...
|
||||||
|
#
|
||||||
|
# The second line is description of the command. Multiple lines
|
||||||
|
# are permitted. The blank line signals the end of this section.
|
||||||
|
# After that, we parses positional and optional arguments.
|
||||||
|
#
|
||||||
|
# The positional argument is enclosed with < and >:
|
||||||
|
#
|
||||||
|
# <PRIVATE_KEY>
|
||||||
|
#
|
||||||
|
# We may describe default behavior without any options by encoding
|
||||||
|
# ( and ):
|
||||||
|
#
|
||||||
|
# (default mode)
|
||||||
|
#
|
||||||
|
# "Options:" is treated specially and produces "OPTIONS" section.
|
||||||
|
# We allow subsection under OPTIONS. Lines not starting with (, <
|
||||||
|
# and Options: are treated as subsection name and produces section
|
||||||
|
# one level down:
|
||||||
|
#
|
||||||
|
# TLS/SSL:
|
||||||
|
#
|
||||||
|
# The above is an example of subsection.
|
||||||
|
#
|
||||||
|
# The description of arguments must be indented by len(arg_indent)
|
||||||
|
# characters. The default value should be placed in separate line
|
||||||
|
# and should be start with "Default: " after indentation.
|
||||||
|
|
||||||
|
line = infile.readline().strip()
|
||||||
|
m = re.match(r'^Usage: (.*)', line)
|
||||||
|
if not m:
|
||||||
|
print 'usage line is invalid. Expected following lines:'
|
||||||
|
print 'Usage: cmdname ...'
|
||||||
|
sys.exit(1)
|
||||||
|
synopsis = m.group(1).split(' ', 1)
|
||||||
|
if len(synopsis) == 2:
|
||||||
|
cmdname, args = synopsis
|
||||||
|
else:
|
||||||
|
cmdname, args = synopsis[0], ''
|
||||||
|
|
||||||
|
description = []
|
||||||
|
for line in infile:
|
||||||
|
line = line.strip()
|
||||||
|
if not line:
|
||||||
|
break
|
||||||
|
description.append(line)
|
||||||
|
|
||||||
|
print '''
|
||||||
|
{cmdname}(1)
|
||||||
|
{cmdnameunderline}
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
--------
|
||||||
|
|
||||||
|
**{cmdname}** {args}
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
-----------
|
||||||
|
|
||||||
|
{description}
|
||||||
|
'''.format(cmdname=cmdname, args=args,
|
||||||
|
cmdnameunderline='=' * (len(cmdname) + 3),
|
||||||
|
synopsis=synopsis, description=format_text('\n'.join(description)))
|
||||||
|
|
||||||
|
in_arg = False
|
||||||
|
|
||||||
|
for line in infile:
|
||||||
|
line = line.rstrip()
|
||||||
|
|
||||||
|
if not line.strip() and in_arg:
|
||||||
|
print ''
|
||||||
|
continue
|
||||||
|
if line.startswith(' ') and in_arg:
|
||||||
|
if not line.startswith(arg_indent):
|
||||||
|
sys.stderr.write('warning: argument description is not indented correctly. We need {} spaces as indentation.'.format(len(arg_indent)))
|
||||||
|
print '{}'.format(format_arg_text(line[len(arg_indent):]))
|
||||||
|
continue
|
||||||
|
|
||||||
|
if in_arg:
|
||||||
|
print ''
|
||||||
|
in_arg = False
|
||||||
|
|
||||||
|
if line == 'Options:':
|
||||||
|
print 'OPTIONS:'
|
||||||
|
print '--------'
|
||||||
|
print ''
|
||||||
|
continue
|
||||||
|
|
||||||
|
if line.startswith(' <'):
|
||||||
|
# positional argument
|
||||||
|
m = re.match(r'^(?:\s+)([a-zA-Z0-9-_<>]+)(.*)', line)
|
||||||
|
argname, rest = m.group(1), m.group(2)
|
||||||
|
print '.. describe:: {}'.format(argname)
|
||||||
|
print ''
|
||||||
|
print '{}'.format(format_arg_text(rest.strip()))
|
||||||
|
in_arg = True
|
||||||
|
continue
|
||||||
|
|
||||||
|
if line.startswith(' ('):
|
||||||
|
# positional argument
|
||||||
|
m = re.match(r'^(?:\s+)(\([a-zA-Z0-9-_<> ]+\))(.*)', line)
|
||||||
|
argname, rest = m.group(1), m.group(2)
|
||||||
|
print '.. describe:: {}'.format(argname)
|
||||||
|
print ''
|
||||||
|
print '{}'.format(format_arg_text(rest.strip()))
|
||||||
|
in_arg = True
|
||||||
|
continue
|
||||||
|
|
||||||
|
if line.startswith(' -'):
|
||||||
|
# optional argument
|
||||||
|
m = re.match(
|
||||||
|
r'^(?:\s+)(-\S+?(?:, -\S+?)*)($| .*)',
|
||||||
|
line)
|
||||||
|
argname, rest = m.group(1), m.group(2)
|
||||||
|
print '.. option:: {}'.format(argname)
|
||||||
|
print ''
|
||||||
|
rest = rest.strip()
|
||||||
|
if len(rest):
|
||||||
|
print '{}'.format(format_arg_text(rest))
|
||||||
|
in_arg = True
|
||||||
|
continue
|
||||||
|
|
||||||
|
if not line.startswith(' ') and line.endswith(':'):
|
||||||
|
# subsection
|
||||||
|
subsec = line.strip()
|
||||||
|
print '{}'.format(subsec)
|
||||||
|
print '{}'.format('~' * len(subsec))
|
||||||
|
print ''
|
||||||
|
continue
|
||||||
|
|
||||||
|
print line.strip()
|
||||||
|
|
||||||
|
def format_text(text):
|
||||||
|
# escape *
|
||||||
|
if len(text) > len(arg_indent):
|
||||||
|
text = text[:len(arg_indent) + 1] + re.sub(r'\*', r'\*', text[len(arg_indent) + 1:])
|
||||||
|
else:
|
||||||
|
text = re.sub(r'\*', r'\*', text)
|
||||||
|
# markup option reference
|
||||||
|
text = re.sub(r'(^|\s)(-[a-zA-Z0-9-]+)', r'\1:option:`\2`', text)
|
||||||
|
# sphinx does not like markup like ':option:`-f`='. We need
|
||||||
|
# backslash between ` and =.
|
||||||
|
text = re.sub(r'(:option:`.*?`)(\S)', r'\1\\\2', text)
|
||||||
|
# file path should be italic
|
||||||
|
text = re.sub(r'(^|\s|\'|")(/[^\s\'"]*)', r'\1*\2*', text)
|
||||||
|
return text
|
||||||
|
|
||||||
|
def format_arg_text(text):
|
||||||
|
if text.strip().startswith('Default: '):
|
||||||
|
return '\n ' + re.sub(r'^(\s*Default: )(.*)$', r'\1``\2``', text)
|
||||||
|
return ' {}'.format(format_text(text))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description='Produces rst document from help output.')
|
||||||
|
parser.add_argument('-i', '--include', metavar='FILE',
|
||||||
|
help='include content of <FILE> as verbatim. It should be ReST formatted text.')
|
||||||
|
args = parser.parse_args()
|
||||||
|
help2man(sys.stdin)
|
||||||
|
if args.include:
|
||||||
|
print ''
|
||||||
|
with open(args.include) as f:
|
||||||
|
sys.stdout.write(f.read())
|
23
makemanpages
23
makemanpages
|
@ -1,17 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
help2man --output=doc/nghttp.1 --name="HTTP/2 experimental client" \
|
for prog in nghttp nghttpd nghttpx h2load; do
|
||||||
-N --include doc/nghttp.h2m src/nghttp
|
src/$prog -h | ./help2rst.py -i doc/$prog.h2r > doc/$prog.1.rst
|
||||||
|
done
|
||||||
help2man --output=doc/nghttpd.1 --name="HTTP/2 experimental server" \
|
|
||||||
-N --include doc/nghttpd.h2m src/nghttpd
|
cd doc
|
||||||
|
make man
|
||||||
help2man --output=doc/nghttpx.1 --name="HTTP/2 experimental proxy" \
|
|
||||||
-N --include doc/nghttpx.h2m src/nghttpx
|
for prog in nghttp nghttpd nghttpx h2load; do
|
||||||
|
cp manual/man/$prog.1 $prog.1
|
||||||
help2man --output=doc/h2load.1 --name="HTTP/2 benchmarking tool" \
|
|
||||||
-N --include doc/h2load.h2m src/h2load
|
|
||||||
|
|
||||||
for file in doc/nghttp.1 doc/nghttpd.1 doc/nghttpx.1 doc/h2load.1; do
|
|
||||||
./man2rst.py < $file > $file.rst
|
|
||||||
done
|
done
|
||||||
|
|
121
man2rst.py
121
man2rst.py
|
@ -1,121 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# This script reads man page from stdin and converts it to rst
|
|
||||||
# document and outputs to stdout.
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import sys
|
|
||||||
import re
|
|
||||||
|
|
||||||
def man2rst(f):
|
|
||||||
expect_arg = False
|
|
||||||
in_arg = False
|
|
||||||
|
|
||||||
sys.stdout.write('.. DO NOT MODIFY THIS FILE! '
|
|
||||||
'It was generated by man2rst.py\n\n')
|
|
||||||
|
|
||||||
for line in f:
|
|
||||||
line = line.rstrip()
|
|
||||||
|
|
||||||
if re.match(r'\.\\"', line):
|
|
||||||
# comment
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.TH ', line):
|
|
||||||
# title
|
|
||||||
title = line.split()[1].lower()
|
|
||||||
sys.stdout.write('.. program:: {}\n\n'.format(title))
|
|
||||||
title += '(1)'
|
|
||||||
sys.stdout.write('{}\n'.format(title))
|
|
||||||
sys.stdout.write('=' * len(title))
|
|
||||||
sys.stdout.write('\n')
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.SH ', line):
|
|
||||||
# section
|
|
||||||
expect_arg = False
|
|
||||||
in_arg = False
|
|
||||||
section = line.split(' ', 1)[1].strip('"')
|
|
||||||
sys.stdout.write('\n{}\n'.format(section))
|
|
||||||
sys.stdout.write('-' * len(section))
|
|
||||||
sys.stdout.write('\n')
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.br', line):
|
|
||||||
sys.stdout.write('\n')
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.B ', line):
|
|
||||||
prog = line.split(' ', 1)[1]
|
|
||||||
sys.stdout.write('**{}** '.format(prog))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.SS ', line):
|
|
||||||
# subsection
|
|
||||||
expect_arg = False
|
|
||||||
in_arg = False
|
|
||||||
subsection = line.split(' ', 1)[1].strip('"').rstrip(':')
|
|
||||||
sys.stdout.write('\n{}\n'.format(subsection))
|
|
||||||
sys.stdout.write('^' * len(subsection))
|
|
||||||
sys.stdout.write('\n')
|
|
||||||
continue
|
|
||||||
|
|
||||||
if re.match(r'\.(T|H|I)P', line):
|
|
||||||
expect_arg = True
|
|
||||||
in_arg = False
|
|
||||||
sys.stdout.write('\n')
|
|
||||||
continue
|
|
||||||
|
|
||||||
if expect_arg and line.startswith('<'):
|
|
||||||
expect_arg = False
|
|
||||||
in_arg = True
|
|
||||||
positional_arg = line.lstrip('<').rstrip('>')
|
|
||||||
sys.stdout.write('.. option:: {}\n\n'.format(positional_arg))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if expect_arg and line.startswith('('):
|
|
||||||
expect_arg = False
|
|
||||||
in_arg = True
|
|
||||||
sys.stdout.write('.. describe:: {}\n\n'.format(line))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if expect_arg:
|
|
||||||
expect_arg = False
|
|
||||||
|
|
||||||
m = re.match(r'(\\fB.*?\\fR(?:, \\fB.*?\\fR)?[\S]*)(.*)', line)
|
|
||||||
if not m:
|
|
||||||
sys.stdout.write('{}\n'.format(process_text(line)))
|
|
||||||
continue
|
|
||||||
|
|
||||||
in_arg = True
|
|
||||||
optional_arg = process_arg(m.group(1))
|
|
||||||
text = m.group(2).strip()
|
|
||||||
sys.stdout.write('.. option:: {}\n\n'.format(optional_arg))
|
|
||||||
sys.stdout.write(' {}\n'.format(process_text(text)))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if in_arg:
|
|
||||||
sys.stdout.write(' {}\n'.format(process_text(line)))
|
|
||||||
continue
|
|
||||||
|
|
||||||
sys.stdout.write('{}\n'.format(process_text(line)))
|
|
||||||
|
|
||||||
def process_arg(text):
|
|
||||||
text = re.sub(r'\\fB(.*?)\\fR', '\\1', text)
|
|
||||||
text = re.sub(r'\\-', '-', text)
|
|
||||||
|
|
||||||
return text
|
|
||||||
|
|
||||||
def process_text(text):
|
|
||||||
text = re.sub(r'\\fI\\,(.*?)\\/\\f(?:R|P)', '\\1', text)
|
|
||||||
text = re.sub(r'\\fB\\(-[^1].*?)\\fR(\s|[,.]|\Z)', ':option:`\\1`\\2', text)
|
|
||||||
text = re.sub(r'\\fB(.*?)\\fR', '\\1', text)
|
|
||||||
text = re.sub(r'\\-', '-', text)
|
|
||||||
text = re.sub(r'\*', '\\*', text)
|
|
||||||
text = re.sub(r'\\&', '', text)
|
|
||||||
|
|
||||||
return text
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
man2rst(sys.stdin)
|
|
|
@ -852,8 +852,7 @@ void print_version(std::ostream &out) {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void print_usage(std::ostream &out) {
|
void print_usage(std::ostream &out) {
|
||||||
out << R"(
|
out << R"(Usage: h2load [OPTIONS]... [URI]...
|
||||||
Usage: h2load [OPTIONS]... [URI]...
|
|
||||||
benchmarking tool for HTTP/2 and SPDY server)" << std::endl;
|
benchmarking tool for HTTP/2 and SPDY server)" << std::endl;
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -871,11 +870,12 @@ void print_help(std::ostream &out) {
|
||||||
are ignored. Those in the first URI are used
|
are ignored. Those in the first URI are used
|
||||||
solely.
|
solely.
|
||||||
Options:
|
Options:
|
||||||
-n, --requests=<N> Number of requests. Default: )" << config.nreqs << R"(
|
-n, --requests=<N> Number of requests.
|
||||||
-c, --clients=<N> Number of concurrent clients. Default: )"
|
Default: )" << config.nreqs << R"(
|
||||||
<< config.nclients << R"(
|
-c, --clients=<N> Number of concurrent clients.
|
||||||
-t, --threads=<N> Number of native threads. Default: )" << config.nthreads
|
Default: )" << config.nclients << R"(
|
||||||
<< R"(
|
-t, --threads=<N> Number of native threads.
|
||||||
|
Default: )" << config.nthreads << R"(
|
||||||
-i, --input-file=<FILE>
|
-i, --input-file=<FILE>
|
||||||
Path of a file with multiple URIs are seperated
|
Path of a file with multiple URIs are seperated
|
||||||
by EOLs. This option will disable URIs getting
|
by EOLs. This option will disable URIs getting
|
||||||
|
@ -889,7 +889,8 @@ Options:
|
||||||
-m, --max-concurrent-streams=(auto|<N>)
|
-m, --max-concurrent-streams=(auto|<N>)
|
||||||
Max concurrent streams to issue per session. If
|
Max concurrent streams to issue per session. If
|
||||||
"auto" is given, the number of given URIs is
|
"auto" is given, the number of given URIs is
|
||||||
used. Default: auto
|
used.
|
||||||
|
Default: auto
|
||||||
-w, --window-bits=<N>
|
-w, --window-bits=<N>
|
||||||
Sets the stream level initial window size to
|
Sets the stream level initial window size to
|
||||||
(2**<N>)-1. For SPDY, 2**<N> is used instead.
|
(2**<N>)-1. For SPDY, 2**<N> is used instead.
|
||||||
|
|
|
@ -81,8 +81,7 @@ void print_version(std::ostream &out) {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void print_usage(std::ostream &out) {
|
void print_usage(std::ostream &out) {
|
||||||
out << "Usage: nghttpd [OPTION]... <PORT> <PRIVATE_KEY> <CERT>\n"
|
out << "Usage: nghttpd [OPTION]... <PORT> [<PRIVATE_KEY> <CERT>]\n"
|
||||||
<< " or: nghttpd --no-tls [OPTION]... <PORT>\n"
|
|
||||||
<< "HTTP/2 experimental server" << std::endl;
|
<< "HTTP/2 experimental server" << std::endl;
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
46
src/shrpx.cc
46
src/shrpx.cc
|
@ -788,14 +788,14 @@ Connections:
|
||||||
repeating this option. HTTP/2 backend does not
|
repeating this option. HTTP/2 backend does not
|
||||||
support multiple backend addresses and the first
|
support multiple backend addresses and the first
|
||||||
occurrence of this option is used.
|
occurrence of this option is used.
|
||||||
Default: ')" << DEFAULT_DOWNSTREAM_HOST << ","
|
Default: )" << DEFAULT_DOWNSTREAM_HOST << ","
|
||||||
<< DEFAULT_DOWNSTREAM_PORT << R"('
|
<< DEFAULT_DOWNSTREAM_PORT << R"(
|
||||||
-f, --frontend=<HOST,PORT>
|
-f, --frontend=<HOST,PORT>
|
||||||
Set frontend host and port. If <HOST> is '*', it
|
Set frontend host and port. If <HOST> is '*', it
|
||||||
assumes all addresses including both IPv4 and
|
assumes all addresses including both IPv4 and
|
||||||
IPv6.
|
IPv6.
|
||||||
Default: ')" << get_config()->host.get() << ","
|
Default: )" << get_config()->host.get() << ","
|
||||||
<< get_config()->port << R"('
|
<< get_config()->port << R"(
|
||||||
--backlog=<NUM> Set listen backlog size. If -1 is given,
|
--backlog=<NUM> Set listen backlog size. If -1 is given,
|
||||||
libevent will choose suitable value.
|
libevent will choose suitable value.
|
||||||
Default: )" << get_config()->backlog << R"(
|
Default: )" << get_config()->backlog << R"(
|
||||||
|
@ -1082,28 +1082,30 @@ Logging:
|
||||||
send USR1 signal to nghttpx.
|
send USR1 signal to nghttpx.
|
||||||
--accesslog-syslog
|
--accesslog-syslog
|
||||||
Send access log to syslog. If this option is
|
Send access log to syslog. If this option is
|
||||||
used, --access-file option is ignored.
|
used, --accesslog-file option is ignored.
|
||||||
--accesslog-format=<FORMAT>
|
--accesslog-format=<FORMAT>
|
||||||
Specify format string for access log. The
|
Specify format string for access log. The
|
||||||
default format is combined format. The following
|
default format is combined format. The following
|
||||||
variables are available:
|
variables are available:
|
||||||
$remote_addr: client IP address.
|
|
||||||
$time_local: local time in Common Log format.
|
* $remote_addr: client IP address.
|
||||||
$time_iso8601: local time in ISO 8601 format.
|
* $time_local: local time in Common Log format.
|
||||||
$request: HTTP request line.
|
* $time_iso8601: local time in ISO 8601 format.
|
||||||
$status: HTTP response status code.
|
* $request: HTTP request line.
|
||||||
$body_bytes_sent: the number of bytes sent to
|
* $status: HTTP response status code.
|
||||||
client as response body.
|
* $body_bytes_sent: the number of bytes sent to
|
||||||
$http_<VAR>: value of HTTP request header <VAR>
|
client as response body.
|
||||||
where '_' in <VAR> is replaced with '-'.
|
* $http_<VAR>: value of HTTP request header <VAR>
|
||||||
$remote_port: client port.
|
where '_' in <VAR> is replaced with '-'.
|
||||||
$server_port: server port.
|
* $remote_port: client port.
|
||||||
$request_time: request processing time in
|
* $server_port: server port.
|
||||||
seconds with milliseconds resolution.
|
* $request_time: request processing time in
|
||||||
$pid: PID of the running process.
|
seconds with milliseconds resolution.
|
||||||
$alpn: ALPN identifier of the protocol which
|
* $pid: PID of the running process.
|
||||||
generates the response. For HTTP/1, ALPN is
|
* $alpn: ALPN identifier of the protocol which
|
||||||
always http/1.1, regardless of minor version.
|
generates the response. For HTTP/1, ALPN is
|
||||||
|
always http/1.1, regardless of minor version.
|
||||||
|
|
||||||
Default: )" << DEFAULT_ACCESSLOG_FORMAT << R"(
|
Default: )" << DEFAULT_ACCESSLOG_FORMAT << R"(
|
||||||
--errorlog-file=<PATH>
|
--errorlog-file=<PATH>
|
||||||
Set path to write error log. To reopen file,
|
Set path to write error log. To reopen file,
|
||||||
|
|
Loading…
Reference in New Issue