# Mautic Multi Domain - SSL not working

**URL:** <https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375>\
**Category:** Product Support\
**Created:** [December 8, 2024, 1:39am UTC](https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375 "2024-12-08T01:39:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rumjahn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rumjahn/32/13282_2.png) [@rumjahn](https://forum.mautic.org/u/rumjahn)\
**Post date:** [December 8, 2024, 1:39am UTC](https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375/1 "2024-12-08T01:39:28Z")

</div>

**Your software**  
My Mautic version is: 5.1  
My PHP version is: 8.1.29  
My Database type and version is: 10.11.6

**Your problem**  
My problem is: I installed mautic on a digital ocean droplet using [GitHub - escopecz/docker-compose-mautic: Deploy Mautic automatically with Github Actions to DigitalOcean](https://github.com/escopecz/docker-compose-mautic) on [mautic.rumjahn.com](http://mautic.rumjahn.com).

My wordpress is installed on a seperate cloudways server on [www.rumjahn.com](http://www.rumjahn.com).

I tried to embed a form into my wordpress but it keeps showing “not secure” warnings because it doesn’t have SSL. When I submit the form, it shows 403 forbidden “tsk tsk, apparently you don’t have access”.

So I went down this rabbit hole and I tried alot of different things. I think the issue is that I didn’t install mautic on the same machine as my wordpress installation so it is having some cross domain origin problems.

- I have tried adding [mautic.rumjahn.com](http://mautic.rumjahn.com) to the verified domains in the CORS settings.
- I have tried adding Header always unset X-Frame-Options to allow headers.
- I have followed [this tutorial on changing the mautic-form-src.js](https://forum.mautic.org/t/please-wait-solution/10199) so it doesn’t load forever when I submit.
- I have tried setting a CNAME to [forms.rumjahn.com](http://forms.rumjahn.com) that points to [mautic.rumjahn.com](http://mautic.rumjahn.com).
- I have tried installing this multi site plugin: [GitHub - FriendlyDotCH/mautic-multi-domain](https://github.com/FriendlyDotCH/mautic-multi-domain?tab=readme-ov-file) but it only supports Mautic 4. So I reinstalled to Mautic 4 but the script by escopez doesn’t support Mautic 4.

No matter what i do, the SSL problem persists. What is the best option to make it work?

1. Try to change the [amazing script by @escopez](https://github.com/escopecz/docker-compose-mautic) and deploy on the same machine as my cloudways but I’m not technically strong enough to do it properly.
2. Try to reverse engineer multi domain plugin and manually make the changes to my mautic 5 installation

Thank you so much! I really want this to work!

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [December 8, 2024, 2:30am UTC](https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375/2 "2024-12-08T02:30:57Z")

</div>

It doesn’t require to be installed on the same environment.  
It doesn’t care if you prefer to use a CNAME or a A or a AAAA DNS entry.

SSL isn’t related at all to anything you’ve listed.

You simply need to configure your vhost on your webserver to use your SSL.

If you have multiple domain, you may either need to add alias and use a SSL that covers multiple TLD. Or you’ll have to create multiple vhost that are all pointing to the same directory.

Grab you web server administrator manual, quick jump to the “vhost” section. And you should be good in no time (it’s not related with your web apps - but your web server configuration).

---

<div class="post-metadata">

**Author:** ![rumjahn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rumjahn/32/13282_2.png) [@rumjahn](https://forum.mautic.org/u/rumjahn)\
**Post date:** [December 9, 2024, 1:04am UTC](https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375/3 "2024-12-09T01:04:42Z")

</div>

I already have a wildcard SSL that covers the SSL. I apologize but there’s several issues I’m encountering and based on the forum feedbacks, I’ve seen multiple people have the same issues.

> [@The form says "please wait" and stays like that all the time](https://forum.mautic.org/t/the-form-says-please-wait-and-stays-like-that-all-the-time/18906):
>
> Your software My Mautic version is: 3.3.2 My PHP version is: 7.3.26 My Database type and version is: 10.2.36-MariaDB Your problem My problem is: Hello, I have a problem. It would be appreciated if someone could help me. When submitting the form that is embedded in my website, it says “please wait” and stays like that all the time and does not jump to the thank you page or custom message. But the information does arrive, that is, the data enters Mautic, but it seems that the form has remai…

 ![Screenshot 2024-12-06 at 3.50.03 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5e4aecdba1457ebebb80db96fa9299040143ff41.png)

- The form loads forever after you hit submit. I fixed this by changing the mautic-form.src.js.
- It displays an error saying it is not private. I checked and the [mautic.rumjahn.com](http://mautic.rumjahn.com) does have the SSL cert. It seems like the form script calls the HTTP and not HTTPS. I’m not sure why it is not “private”.
- Even if I ignore the security issue, it gives me no authorization after form is submitted.

 ![Screenshot 2024-12-06 at 10.56.52 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ee761c701b6b3df11f8c2d3099bb5aead92c95f0.jpeg)

So I’m kinda solving 2 issues packed in 1. I’m sorry I’m not very technical but I think this could help alot of non technical people if it can be solved.

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [December 9, 2024, 2:46am UTC](https://forum.mautic.org/t/mautic-multi-domain-ssl-not-working/34375/4 "2024-12-09T02:46:57Z")

</div>

According to your screenshot, the SSL wasn’t installed.  
_A common name mismatch error occurs when the domain SSL certificate is installed on is not listed on the certificate._

You’ll first need to fix that before being able to use a web app.
