Let's say I have the following simple Go web app:
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World")
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}
I have a website which is hosted by my university (www.univ.edu/me) and currently I have a wiki setup under www.univ.edu/me/wiki and it works fine. My question is how I can deploy the above Go app there so it can be accessed through www.univ.edu/me/mygoapp?
I have found some solutions but they all appear to require root privileges. In my case, I don't have root access and I'm not able to modify the configuration of server, which most likely is Apache.
Update: Thanks for your replies. It appears that in my case, the Apache server is on a separate machine than the one which physically hosts my website files. The machine/IP that has the Apache, refuses ssh connections so there's no direct way to check the server's configuration.