# How to disable direct https://ipaddress visit?

**URL:** <https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927>\
**Category:** Self-hosting\
**Tags:** tablet\
**Created:** [2016 年9 月 9 日 10:06 UTC](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927 "2016-09-09T10:06:20Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

作者： ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
发布日期： [2016 年9 月 10 日 03:30 UTC](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927/15 "2016-09-10T03:30:51Z")

</div>

Nah, I think @doudou here would be happy if, after they clicked past the bad cert warning, _then_ they got the 500 page.

So a 99-year self-signed cert for the IP address would be fine.

One of many how-to guides for that: [http://www.cyberciti.biz/faq/nginx-self-signed-certificate-tutorial-on-centos-redhat-linux/](http://www.cyberciti.biz/faq/nginx-self-signed-certificate-tutorial-on-centos-redhat-linux/)

---

_[View the full topic](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927)._
