Mautic Multi Domain - SSL not working

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 on mautic.rumjahn.com.

My wordpress is installed on a seperate cloudways server on 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.

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 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!

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).

1 Like

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 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 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.

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.

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.