Reputation: 398
Is it possible to host a go application on apache/nginx server ?
Upvotes: 7
Views: 2475
Reputation: 24300
Of course. You can use Go's built in web-server directly (which is very capable), or sit behind a nginx/Apache reverse proxy if you so wish.
I run my Go application behind nginx, and use supervisord to manage logging, restarting and managing my Go application.
Take a look at these two answers for some more details: Golang production web application configuration and Webserver for Go (golang) webservices: using NGINX or not?
Upvotes: 9