# Elastic Cloudのkibanaを独自ドメインで公開したい

**URL:** <https://discuss.elastic.co/t/elastic-cloud-kibana/192820>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [July 30, 2019, 4:38am UTC](https://discuss.elastic.co/t/elastic-cloud-kibana/192820 "2019-07-30T04:38:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [July 30, 2019, 3:47pm UTC](https://discuss.elastic.co/t/elastic-cloud-kibana/192820/4 "2019-07-30T15:47:30Z")

</div>

このdiscussでも同様のエラーが表示されている旨の投稿がいくつかありますが、  
私の手元の環境で試したときは、遭遇しませんでした。

Dockerのnginxで確認していますが、以下のような設定でElastic CloudのKibanaの画面を表示することができています。

```auto

server{
    listen 443 ssl;
    server_name localhost;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    ssl_prefer_server_ciphers on;
    ssl_certificate /etc/nginx/server.crt; # ←これは自分で用意した
    ssl_certificate_key /etc/nginx/server.key; # ←これは自分で用意した

    location / {
        # Elastic CloudのKibanaのエンドポイントを指定する
        proxy_pass https:// ****************.us-east-1.aws.found.io:9243;
    }
}

```

なお、httpのnginxで proxy\_passがhttpsとなっていると、ログインページはhttpsにしてください、というkibanaの画面でエラーとなったため、上記のようにhttpsで確認しています。  
（いわゆるオレオレ証明書で確認しております。。。）

この設定で [https://localhost/](https://localhost/) としますと、kibanaのログイン画面が表示されました。

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f0a4bdc05ebd888714cf8d68b2c2e0cf7be9a887.png)

Unknown deploymentに遭遇している他の人の例

> [@Elasticsearch/Kibana Unknown Deployment](https://discuss.elastic.co/t/elasticsearch-kibana-unknown-deployment/180697):
>
> Hi, I am using elasticsearch cloud and I've been provided a long URL of kibana i.e. - [https://5e765d3c21d84e8f8d6bd362d8bf6564.us-central1.gcp.cloud.es.io:9243](https://5e765d3c21d84e8f8d6bd362d8bf6564.us-central1.gcp.cloud.es.io:9243) I have configured the DNS routing in my GCP cloudDNS for the URL forexample - [arp-es.xyz.com:9243](http://arp-es.xyz.com:9243) But when I open the URL i.e [xyz.com](http://xyz.com) it gives me "Unknown Deployment" error. The kibana is working fine on the long URL mentioned above, but somehow it is not routing to the short URL ie- [arp-es.xyz.com](http://arp-es.xyz.com) (Was working before but after upgra…

こちらの設定ですと、リダイレクトになってしまうため独自ドメインで公開したいという用途にはあわないかと思います。

ご参考になれば幸いです。

---

_[View the full topic](https://discuss.elastic.co/t/elastic-cloud-kibana/192820)._
