APP Platform Laravel Wildcard Subdomain

How do I achieve wildcard subdomain with my laravel application using DO app platform. It works fine using droplet and * A record.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Dikshith Shetty
DigitalOcean Employee
DigitalOcean Employee badge
March 22, 2021
Accepted Answer

Hello @raynirola

If your domain nameserver is pointing to DigitalOcean then you can have to set add the domain and wildcard domain “*” in your app settings and required DNS records will be auto-generated. After DNS propagation time, the wildcard domain should start working.

In case your domain nameserver is not pointing to DigitalOcean then you have to follow one more step including adding the domain in the app settings. That is to point the domain CNAME record to app default subdomain provided by App Platform.

How to manage domain in App Platform

If the issue persists then please contact support with your domain name and APP ID for further help.

Regards, Dikshith


Actually I had the same problem, and it may take more then transferring your DNS name server to Digital Ocean and add the domain, then wildcard domain and expect just to work.

Let me explain what I’ve found out so far.

Digital Ocean APP platform uses CloudFlare and proxies the request throughout them, which is great as it adds extra security layer and DDOS protection, but when it comes to wildcard domain setting CNAME record is simply not enough. ColudFlare can fail proxy your wildcard domains, and you may end up with Error 1016 Origin DNS Error, even though your wildcard SSL certificate is valid.

It requires you to make additional changes in your DNS records. CloudFlare can only pass your wildcard subdomain if you are using “CNAME Flattening” (sometimes called an alias record, or ANAME). If you have the above error, please learn about CNAME Flattening.

I am happy that it was resolved on your side, but if someone else have the same problem, this might help.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel