Skip to content
Snippets Groups Projects
Unverified Commit 9310dd48 authored by Max Adamo's avatar Max Adamo
Browse files

minor

parent cc6c79ba
Branches
Tags
No related merge requests found
......@@ -89,19 +89,19 @@ Options:
listenPort := arguments["--listen-port"].(string)
baseURLs := [6]string{"/sectigo_ev", "/sectigo_ov", "/letsencrypt", "/sectigo_ev/", "/sectigo_ov/", "/letsencrypt/"}
otherURLs := [12]string{"/letsencrypt/index.html", "/letsencrypt/expiry_date.html",
otherURLs := [12]string{"/letsencrypt/cert_mame.html", "/letsencrypt/expiry_date.html",
"/letsencrypt/letsencrypt.json", "/letsencrypt/letsencrypt_expired.json",
"/sectigo_ov/index.html", "/sectigo_ov/expiry_date.html",
"/sectigo_ov/cert_mame.html", "/sectigo_ov/expiry_date.html",
"/sectigo_ov/sectigo_ov.json", "/sectigo_ov/sectigo_ov_expired.json",
"/sectigo_ev/index.html", "/sectigo_ev/expiry_date.html",
"/sectigo_ev/incert_mamedex.html", "/sectigo_ev/expiry_date.html",
"/sectigo_ev/sectigo_ev.json", "/sectigo_ev/sectigo_ev_expired.json"}
fs := http.FileServer(http.Dir("/var/www/acme_web/static"))
http.Handle("/static/", http.StripPrefix("/static/", fs))
http.HandleFunc("/index.html", func(res http.ResponseWriter, req *http.Request) {
http.ServeFile(res, req, filepath.Join(webDir, "index.html"))
})
//http.HandleFunc("index.html", func(res http.ResponseWriter, req *http.Request) {
// http.ServeFile(res, req, filepath.Join(webDir, "index.html"))
//})
http.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
http.ServeFile(res, req, filepath.Join(webDir, "index.html"))
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment