Laravel Forge doesn't support this out of the box. Instead, you need to update your nginx config to make this work.
This should put you in the right direction: https://mattstauffer.com/blog/applying-an-ssl-cert-to-a-laravel-forge-sites-www.-domain/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I have a multi-tenant app that works fine. No issues. I've got a wild-card ssl cert with letsencrypt and that is working great.
However, I've got a couple of clients who want custom domains. So something like foo.myapp.com point to foo.com. OK, I can do that with an A Record on their DNS and with a couple of app-level modifications I'm good to go.
The problem is that the SSL certs aren't work. I tried to add a new SSL cert and I get an error that LetsEncrypt states challenge is invalid! (returned: invalid).
So has anyone done this before? Happy to give more information but DNS and server stuff is really not my area of expertise so I'm not 100% sure if this is even something Forge can do.
Laravel Forge doesn't support this out of the box. Instead, you need to update your nginx config to make this work.
This should put you in the right direction: https://mattstauffer.com/blog/applying-an-ssl-cert-to-a-laravel-forge-sites-www.-domain/
Please or to participate in this conversation.