I have searched a lot of managing sub domains using Golang web server. I think I have found two main solutions:
Using nginx as proxy server
Basically nginx points to different servers on different ports evaluating the incoming domain name.
Using Golang server itself
Different handlers pointing to different sub handlers.
My question is if there is pros and cons with either approach?
Or is there other options?