2017-04-10 14:24:53 +00:00
|
|
|
server {
|
2017-05-30 15:37:07 +00:00
|
|
|
listen 80 default;
|
2018-02-16 18:30:31 +00:00
|
|
|
listen [::]:80 default ipv6only=on;
|
2017-05-30 16:11:39 +00:00
|
|
|
server_name localhost clickhouse.yandex test.clickhouse.yandex;
|
2017-04-10 14:24:53 +00:00
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
2017-05-16 16:48:59 +00:00
|
|
|
error_page 404 /404.html;
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
2017-05-30 15:37:07 +00:00
|
|
|
|
2017-05-16 16:48:59 +00:00
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/www;
|
|
|
|
}
|
2017-05-30 16:11:39 +00:00
|
|
|
|
|
|
|
rewrite ^/docs/$ https://clickhouse.yandex/docs/en/ permanent;
|
2017-06-20 14:19:03 +00:00
|
|
|
rewrite ^/reference_en.html$ https://clickhouse.yandex/docs/en/single/ permanent;
|
|
|
|
rewrite ^/reference_ru.html$ https://clickhouse.yandex/docs/ru/single/ permanent;
|
2019-09-26 13:09:13 +00:00
|
|
|
rewrite ^/presentations/(.*)$ https://clickhouse.github.io/clickhouse-presentations/$1 permanent;
|
2018-02-16 18:30:31 +00:00
|
|
|
|
2018-07-09 19:59:07 +00:00
|
|
|
include /usr/share/nginx/html/docs/redirects.conf;
|
|
|
|
|
2018-02-16 18:30:31 +00:00
|
|
|
if ( $uri !~ .*/index.html ){
|
|
|
|
rewrite ^/docs/(.*)/(.+)\.html$ /docs/$1/$2/ permanent;
|
|
|
|
}
|
2017-04-10 14:24:53 +00:00
|
|
|
}
|
2017-05-18 09:08:35 +00:00
|
|
|
|
|
|
|
server {
|
|
|
|
server_name clickhouse.yandex.ru clickhouse.yandex.com;
|
|
|
|
return 301 https://clickhouse.yandex$request_uri;
|
|
|
|
}
|