提交 ecc65a21 编写于 作者: S Slach

add reference to http_server_default_response in HTTP interface description

Signed-off-by: NSlach <bloodjazman@gmail.com>
上级 71a94309
......@@ -3,8 +3,9 @@
The HTTP interface lets you use ClickHouse on any platform from any programming language. We use it for working from Java and Perl, as well as shell scripts. In other departments, the HTTP interface is used from Perl, Python, and Go. The HTTP interface is more limited than the native interface, but it has better compatibility.
By default, clickhouse-server listens for HTTP on port 8123 (this can be changed in the config).
If you make a GET / request without parameters, it returns the string "Ok." (with a line feed at the end). You can use this in health-check scripts.
If you make a GET / request without parameters, it returns 200 response code and the string "Ok." (with a line feed at the end).
[http_server_default_response](server_settings/settings.md#server_settings-http_server_default_response) settings can change default HTTP response.
Be careful when use this in health-check scripts.
```bash
$ curl 'http://localhost:8123/'
Ok.
......
......@@ -215,7 +215,7 @@ If `http_port` is specified, the openSSL configuration is ignored even if it is
```
## http_server_default_response
## http_server_default_response {#server_settings-http_server_default_response}
The page that is shown by default when you access the ClickHouse HTTP(s) server.
......
......@@ -3,7 +3,9 @@
HTTP интерфейс позволяет использовать ClickHouse на любой платформе, из любого языка программирования. У нас он используется для работы из Java и Perl, а также из shell-скриптов. В других отделах, HTTP интерфейс используется из Perl, Python и Go. HTTP интерфейс более ограничен по сравнению с родным интерфейсом, но является более совместимым.
По умолчанию, clickhouse-server слушает HTTP на порту 8123 (это можно изменить в конфиге).
Если запросить GET / без параметров, то вернётся строка "Ok." (с переводом строки на конце). Это может быть использовано в скриптах проверки доступности.
Если запросить GET / без параметров, то вернётся строка "Ok." (с переводом строки на конце).
Настройка [http_server_default_response](server_settings/settings.md#server_settings-http_server_default_response) может изменить тело HTTP ответа по умолчанию.
Будьте осторожны в скриптах проверки доступности.
```bash
$ curl 'http://localhost:8123/'
......
......@@ -207,7 +207,7 @@ ClickHouse проверит условия `min_part_size` и `min_part_size_rat
```
## http_server_default_response
## http_server_default_response {#server_settings-http_server_default_response}
Страница, показываемая по умолчанию, при обращении к HTTP(s) серверу ClickHouse.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册