References
HTTP protocol configuration
json:http_protocol
Original definition
# HTTP protocol configuration
## Definition
~~~json
{
"isOn": "Whether enabled",
"listen": [
{
"protocol": "Protocol",
"host": "Host address, usually empty",
"portRange": "Port or port range"
},
...
]
}
~~~
## Examples
### Listen on port 80
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "http",
"host": "",
"portRange": "80"
}
]
}
~~~
### Listen on ports 80 and 8080
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "http",
"portRange": "80"
},
{
"protocol": "http",
"portRange": "8080"
}
]
}
~~~