openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit af930144cf5e349976ad7e5ced8fbda7f9f7ac55
parent b6fad07801efd90823f842dffa9778d9ff3543cb
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Sat, 13 Mar 2021 18:52:47 +0000

redirects

Diffstat:
Mii-node/main.go | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ii-node/main.go b/ii-node/main.go @@ -243,9 +243,12 @@ func main() { }) ii.Info.Printf("Listening on %s", *listen_opt) - http.HandleFunc("syscall.ru/", func(w http.ResponseWriter, r *http.Request) { - http.Redirect(w, r, "//hugeping.tk/std.hugeping", http.StatusSeeOther) - }) +// http.HandleFunc("hugeping.ru/", func(w http.ResponseWriter, r *http.Request) { +// http.Redirect(w, r, "//club.hugeping.ru/blog/std.hugeping", http.StatusSeeOther) +// }) + + http.Handle("hugeping.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) + http.Handle("syscall.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) if err := http.ListenAndServe(*listen_opt, nil); err != nil { ii.Error.Printf("Error running web server: %s", err)