Run Go web app with apache2 server
The common inferface between web server and applications is FCGI. So, net/http/fcgi
package can be included from Go standard library.
And in the apache web server the FCGI can be used by installing libapache2-mod-fastcgi
in debian. And then enable the mod using sudo a2enmod fastcgi
I think the quickest and easiest way to make this work is by creating or editing .htaccess
file on the root of Go app. And then add Options -Indexes +FollowSymLinks +ExecCGI
.
And now it should work like this.