http.Handle("/files/", http.StripPrefix("/files/", http.FileServer(http.Dir(myDir)) ) )http.HandleFunc("/files/", func(w http.ResponseWriter, r *http.Request) {
if strings.HasSuffix(r.URL.Path, ".css") {
http.Handle("/files/", http.StripPrefix("/files/", http.FileServer( http.Dir(myDir) ) ) )
} else {
r.URL.Path = "/page10.html"
http.FileServer(http.Dir(myDir)).ServeHTTP(w, r)
}
})
Или может стоять 1 Node.js, обслуживающий несколько проектов?