# Apache reverse proxy : Public links in HTTP instead of HTTPS

**URL:** <https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308>\
**Category:** Troubleshooting\
**Created:** [March 26, 2020, 3:28pm UTC](https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308 "2020-03-26T15:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pafzedog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pafzedog/32/3664_2.png) [@Pafzedog](https://forum.mattermost.com/u/Pafzedog)\
**Post date:** [March 26, 2020, 3:28pm UTC](https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308/1 "2020-03-26T15:28:36Z")

</div>

#### Summary

Public links are in HTTP instead of HTTPS

#### Steps to reproduce

- In System console, enable public links
- Access your instance with secure URL: [https]://my.matter.most/my\_team/channels/my\_channel
- post a message with an attachment
- click to preview the attachment
- click on “get the public link”

#### Expected behavior

Public link should be : [https]://my.public.link

#### Observed behavior

public link is : [http]://my.public.link

* * *

- Which version of Mattermost are you using : 5.21
- A link to documentation used : [https://docs.mattermost.com/install/install-debian.html](https://docs.mattermost.com/install/install-debian.html)
- What variations have you made that differ from the instructions? : reverse proxy is made with Apache on a dedicated linux box to get TLS with mattermost, here is the unofficial documentation : [https://docs.mattermost.com/install/config-proxy-apache2.html](https://docs.mattermost.com/install/config-proxy-apache2.html)

---

<div class="post-metadata">

**Author:** ![sven.huester](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/sven.huester/32/8724_2.png) [@sven.huester](https://forum.mattermost.com/u/sven.huester)\
**Post date:** [March 26, 2020, 3:54pm UTC](https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308/2 "2020-03-26T15:54:10Z")

</div>

Hi @Pafzedog,  
what do you have your site URL set to?

---

<div class="post-metadata">

**Author:** ![Pafzedog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pafzedog/32/3664_2.png) [@Pafzedog](https://forum.mattermost.com/u/Pafzedog)\
**Post date:** [March 26, 2020, 3:56pm UTC](https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308/3 "2020-03-26T15:56:21Z")

</div>

hi !

my site URL is set to [https]://my\_reverse.host.name

everything I try for now is working great, desktop clients, webui, Android client with push notifications.  
just the public link is created without TLS .

I don’t know but perhaps it related with this : [https://github.com/mattermost/mattermost-server/issues/8739#issuecomment-387451051](https://github.com/mattermost/mattermost-server/issues/8739#issuecomment-387451051)

---

<div class="post-metadata">

**Author:** ![Pafzedog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pafzedog/32/3664_2.png) [@Pafzedog](https://forum.mattermost.com/u/Pafzedog)\
**Post date:** [March 31, 2020, 8:29am UTC](https://forum.mattermost.com/t/apache-reverse-proxy-public-links-in-http-instead-of-https/9308/4 "2020-03-31T08:29:05Z")

</div>

Since I configured Mattermost to work with TLS in system console (with crt and key, etc …) , there is no more error with public links, I think it’s is a bug .
