If you run Golang's main.go, it says you can't access this site.
Did something go wrong with this? (I didn't mess with anything)
main.go
package main
import(
"net/http"
"html/template"
)
funcmain(){
http.HandleFunc("/home", index)
http.ListenAndServe(":80", nil)
}
func index(whttp.ResponseWriter,r*http.Request){
getindex: = template.Must(template.ParseFiles("index.html"))
getindex.ExecuteTemplate(w, "index.html", nil)
}
Isn't the firewall working?If so,
$sudo ufw allow80
Wouldn't it be possible to access the site by running ?
© 2024 OneMinuteCode. All rights reserved.