# Https with apache2 not working

**URL:** <https://forum.mattermost.com/t/https-with-apache2-not-working/7637>\
**Category:** Troubleshooting\
**Created:** [July 8, 2019, 3:03pm UTC](https://forum.mattermost.com/t/https-with-apache2-not-working/7637 "2019-07-08T15:03:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elsaadj](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@elsaadj](https://forum.mattermost.com/u/elsaadj)\
**Post date:** [July 8, 2019, 3:03pm UTC](https://forum.mattermost.com/t/https-with-apache2-not-working/7637/1 "2019-07-08T15:03:42Z")

</div>

#### Summary

Mattermost works fine with http, but can’t get https to work with mattermost

#### Steps to reproduce

Mattermost Version: 5.0.0, http…:8065 works fine, now needed to make it https using lets-encrypt certificate, spent a lot of time searching, found two options with instructions:

1. Configure mattermost config.json with TLS, 433, use letsencrypt, forward 80 to 433. The problem here is matermost doesn’t start because 433 is used by apache (have another web application bugzilla using https on same machine), instructions from [https://docs.mattermost.com/install/config-tls-mattermost.html](https://docs.mattermost.com/install/config-tls-mattermost.html)

2. Configure apache reverse proxy for mattermost, following the instructions for virtual host settings. The issue here is that chrome says invalid site name in certificate because it trying to use bugzilla certificate. Instructions from [https://docs.mattermost.com/install/config-apache2.html](https://docs.mattermost.com/install/config-apache2.html)

#### Expected behavior

Can you use https for mattermost with other https virtual hosts, or need dedicated machine for mattermost to work with https?

#### Observed behavior

option 1: mattermost exits  
option 2: https request can’t find the right certificate

---

<div class="post-metadata">

**Author:** ![elsaadj](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@elsaadj](https://forum.mattermost.com/u/elsaadj)\
**Post date:** [July 14, 2019, 4:52pm UTC](https://forum.mattermost.com/t/https-with-apache2-not-working/7637/2 "2019-07-14T16:52:31Z")

</div>

It works now, used “apache2ctl -S” and it showed \*:433 missing for the site in the list and that is why it was using the default certificate.

Replace \*:433 with ip:433 and that worked
