fix/polish .port VCL backend attribute documentation

parent 9134cdea
varnishtest "Test backend definition documentation examples"
feature cmd {getent hosts localhost && getent services http}
varnish v1 -arg "-p vcc_err_unref=off" -vcl {
backend b1 {.host = "127.0.0.1";}
backend b2 {.host = "[::1]:8080";}
backend b3 {.host = "localhost:8081";}
backend b4 {.host = "localhost:http";}
backend b5 {.host = "127.0.0.1";.port = "8081";}
backend b6 {.host = "127.0.0.1";.port = "http";}
}
\ No newline at end of file
......@@ -57,10 +57,17 @@ one IPv4 and one IPv6 address::
.host = "example.com:8081";
The TCP port number can be specified as part of ``.host`` as above
or separately using the ``.port`` attribute::
.host = "example.com:http";
.port = 8081;
Attribute ``.port``
-------------------
The TCP port number or service name can be specified as part of
``.host`` as above or separately using the ``.port`` attribute::
.port = "8081";
.port = "http";
Attribute ``.path``
-------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment