What is benefit of having multiple phoenix endpoints

I used that approach once to restrict the access to the admin site. Two endpoints means that two sites listen on different ports, so you can control the port accessibility. In my case, the port of the main site was accessible from the outside, while the admin site port was not. Thus, the only people who could have accessed the admin site were the ones who had SSH access to the server.

14 Likes