You're right about nginx, a good alternative doesn't really exist. CGI lack sucks, but they have their reasons. I'd be interested in your standalone webserver in Go, if you ever start to write it.
On Friday, September 21, 2012, Uriel wrote: > On Thu, Sep 20, 2012 at 9:50 PM, Džen <yvl...@gmail.com> wrote: > > What's the reason behind using nginx anyway? I guess it would be simpler > to > > write an own http web server with go's http lib. Or am I wrong? > > CGD can act as an HTTP server, but wont handle static files, it will > pass all requests to a single CGI script. > > Why people use nginx? Well, same reason people use any web server: the > alternatives also suck and you have to pick one. > > I have some plans for a full standalone web server (that can handle > both static and dynamic content) in Go, the libraries are all already > there, but there are some issues like how to best handle > configuration. > > Uriel > > >