I made a simple Go app that does it very nicely. http://yourdomain.com will serve index.html, and the rest of the pages are available at http://yourdomain.com/mypage.html
Here yaml:
application: myawesomeapp version: 1 runtime: go api_version: go1 handlers: - url: /.* script: _go_app
Here comes the program that will serve all your static files at the root level:
package hello import ( "net/http" ) func init() { http.HandleFunc("/", handler) } func handler(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "static/"+r.URL.Path) }
Then drop all your static files into the / static directory, run goapp deploy and you're done.
source share