Day 14 updates for

- Started work on a dashboard.
- Fixed issues with routing logged in users to dashboard.appbasics.com instead of their own subdomain.
- Got a new domain for all subdomain sites. Everyone signing up will get a .install.so domain ;-)
EK Author

It depends on each framework and what proxies you are using. For Rails + Nginx this is what I have to do.

0 Likes
Fernando Palacios

Very nice! How is it possible to dynamically create subdomains, can you explain the process a bit?

0 Likes
EK Author

Point a wildcard A record to my loadbalancer ip, something like *.install.so to 127.0.0.1 so DNS will resolve every subdomain to my loadbalancer. Then I need to make sure Nginx also doesn't kick a fuss about subdomains. by using a wildcard server_name *.install.so, at this point my rails app will get all requests for each subdomain, so I need to check in my app logic which subdomain a request is for and then return the page/data for that subdomain.

0 Likes

Please sign in to leave a comment.