Route multi domain

i need some code to find out if it is possible to route multi domain in elixir and phoenixframework.
i want to create a small blog system with give ability to user to add a domain in profile. when visitor visit the blog that user create show with address of his/her domain.

it is very important for me and i dont have any background. please explain me and i think it is a good subject for developer to create module .


seems to be duplicate of ?

I post new one with some changes , and the first one posted in phoenix framework part , but I think may be it have some pure elixir way , so I post it here.

do you have any idea that how i handle my problem

Please do not post multiple threads about the same topic - update the original thread if you have to.