Screencast

Subdomain Routing

8. Subdomain Routing

A common feature in larger web applications, especially SaaS platforms, is the ability to handle different subdomains with separate routing.

In this video, I’ll show you how to add a custom routing module to a Phoenix application, to display my blog posts on a dedicated subdomain.

I am usually using this approach to serve different content, like a blog or user dashboard, with distinct subdomains, with the purpose to keep my main application structure clean and organized.