Have you taken a look at https://golang.org/pkg/net/http/httputil/#ReverseProxy ?
Also, I think nginx may be a good fit for this unless you just wanted to do it programatically. On Wednesday, July 26, 2017 at 11:35:00 AM UTC-4, Andrew wrote: > > Hi, > > I've installed a Discourse forum software to a cloud server in Docker. I > want to write a simple Go server and install it to the same server to serve > my own website(www.mysite.com). > > How can I proxy all forum traffic to the Discourse(forum.mysite.com) in > docker from my Go server using standard library? > > Thanks, > Andrew > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.