# How to have ssl on a non subdomain

**URL:** https://meta.discourse.org/t/how-to-have-ssl-on-a-non-subdomain/99741
**Category:** Support
**Created:** [October 17, 2018, 5:44pm UTC](https://meta.discourse.org/t/how-to-have-ssl-on-a-non-subdomain/99741 "2018-10-17T17:44:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mikymora](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@mikymora](https://meta.discourse.org/u/mikymora)
#### Post date: [October 17, 2018, 5:44pm UTC](https://meta.discourse.org/t/how-to-have-ssl-on-a-non-subdomain/99741/1 "2018-10-17T17:44:36Z")

</div>

Is there a possibility to have my nornal domain using https like my subdomain `forum.example.com`?

Im redirecting `example.com` to `forum.example.com`

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [October 18, 2018, 5:33am UTC](https://meta.discourse.org/t/how-to-have-ssl-on-a-non-subdomain/99741/2 "2018-10-18T05:33:42Z")

</div>

This can be achieved in multiple ways, Easiest will be to use your domain with cloudflare with following settings:

1. `example.com` - Cloudflare enabled, SSL served by cloudflare and Page rule set up to forward all requests to `forum.example.com`
2. `forum.example.com` - Cloudflare disabled (certificate managed by discoruse itself)

alternatively, you can also set up a reverse proxy like nginx and terminate ssl from there, Generate letsencrypt ssl for your reverse proxy and then from nginx, set the appropriate redirect.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 17, 2018, 5:33am UTC](https://meta.discourse.org/t/how-to-have-ssl-on-a-non-subdomain/99741/3 "2018-11-17T05:33:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
