golang-apache-fastcgi icon indicating copy to clipboard operation
golang-apache-fastcgi copied to clipboard

Learning project to deploy a go binary in shared hosting environment.

Go + Apache + FastCGI = Go for Shared Hosting

Learning project to deploy a Go binary as FastCGI script on an Apache http server.

Examples

  • Vanilla
    • Starting point to make any go binary FastCGI compatible.
  • Beego

Getting Started

Please make sure you have Go and Beego installed. Then just do:

$ make

Then open your browser:

$ open http://localhost

When you are using docker-osx:

$ open http://localdocker

Why Apache HTTP?

The primary focus of this project is to demo the use of Go binaries in a shared hosting environment.

Also on web servers like Nginx there are seperate start/stop scripts required to spawn FastCGI processes.

Performance

benchmarks/static.jpg benchmarks/vanilla.jpg benchmarks/beego.jpg

Thanks / References

License

See LICENSE.