By lukasblu
Hello, I run a saas where our customers can create a booking process. For this, the connection of an own domain is also possible. So it must be possible to point different domains to certain parts of the app. The customers can connect their own domains with an A record. Is that also possible here?
Thanks in advance :)
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!
It is possible to run multiple domains with App Platform. There are limits to the number of domains allowed by default. If you plan to run a SaaS style app with more than a few dozen, I recommend talking to our support/sales team. The App Platform also supports wildcard domains (ex. *.example.com) which can be used to ease configuration of lots of subdomains.
As for routing, we pass in the original HTTP Host header with all requests. This should allow your application to differentiate a request addressed to customer-a.com from one addressed to customer-b.com. If you need to route traffic from customer-a.com to your PHP service, and from customer-b.com to your Ruby service, we recommend splitting those into two apps. We have per-domain component routing within the same app on our road-map, but it’s not yet supported.
Lastly, you mention A records. App Platform domains are configured for with CNAMEs. For example, to create www.example.com you would add a CNAME record for www with the target example-app.ondigitalocean.app to your example.com domain zone. For apex domains (without subdomains, ex. example.com), it’s necessary to use CNAME flatting (sometimes called A-NAMEs, or alias records). If the domain is managed by DNS, App Platform will automatically create the alias records. Not all providers support CNAME flattening; NameCheap, and DNSimple are known to work.
Hey there,
Quick update here, the ability to point multiple domains to different services in a single App Platform app is currently being worked on by the DigitalOcean team!
You can follow the progress (and upvote/comment to show support) here: 👉 https://ideas.digitalocean.com/app-platform/p/point-domains-to-specific-services
Definitely a super useful feature for multi-tenant setups like yours. Keep an eye on that page for updates!
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.