Sunday, 23 April 2017

Multi-tenant web application based on same domain name

Let's say I have mymemento.space as domain name with sub-space mymento.space/maths, mymento.space/history, mymento.space/geography

For each user, I could create mymento.space/maths/user1 mymento.space/maths/user2

But what I'd like is that when user1 is already logged, it can go to mymento.space then add /maths or/history etc, and see his contents only without adding user1 each time

Same for any other user as if the whole domain name was owned by that user.

I don't know if is even possible techically. If yes how to do this for example in Apache if needed with a bit of PHP or in NodeJs ?



via user310291

No comments:

Post a Comment