refactor to separate servers per domain with a reverse proxy