3 ms·
I just moved all my users over from directories to subdomains for my project AppRabbit and I think it's done a lot in terms of ease of use. They used to have t
by megamark16 16y ago
I just moved all my users over from directories to subdomains for my project AppRabbit and I think it's done a lot in terms of ease of use. They used to have to type apps.apprabbit.com/myapp/ but now they can just go to myapp.apprabbit.com. It's the same thing, but different, and it just feels much better. Setup was a little tricky to figure out, but in the end it's pretty much the same thing, as far as the app code is concerned, apache handles all the heavy lifting. It actually made things easier on a few fronts because before I had to inject the user's app name into the path for things like redirecting to the login page, etc, so this change made things like that easier.
One thing that I don't get now, or at least I'll have to work for it, is sharding my setup, when I get to that point. Before I figured I could just move people to app1.apprabbit.com, app2.apprabbit.com, etc, but now I will have to handle the redirecting in my configs when I get to the point where I need to split things out for performance. On the other hand, this makes it that much easier to move a big customer off of a shared host and give them their own server without changing anything public facing.
In the end it definitely has it's perks and drawbacks, but I wanted subdomains, and so far I haven't had any problems with them.