Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

itinerix's avatar

Custom-domain + multi-tenant *with SSL*

I need to allow users to add their own custom domain names. In other words, their content should be accessible via userdomain.com rather than (or as well as) subdomain.myapp.com.

@joelennon 's excellent article explains how to do that here. But... for me it's working in "http", and not in "https".

My app has its own SSL cert, and users have their own SSL certs on their respective domains.

Besides, I'm using a load balancer (smoothly installed by Forge), where my SSL cert resides.

I tried a lot of things, to no avail.

I guess it's a matter of configuration rather than code, and I just can't figure it out.

Thanks to the superhero(es) who can help with this!

0 likes
2 replies
douglasakula's avatar

What error message are you getting with https. Could it be that you need a multi domain certificate installed ? - which would have the different domain names that for your users

itinerix's avatar

It says "{userdomain.com} redirected you too many times"

My app is behind a load balancer, which as a wildcard SSL certificate on it. My app works fine, but when it comes from an outside user domain, it doesn't go further.

Please or to participate in this conversation.