patrickhener / goshs

A SimpleHTTPServer written in Go, enhanced with features and with a nice design - https://goshs.de
MIT License
245 stars 22 forks source link

How to define the default home page? #49

Closed hhackbarth closed 1 year ago

hhackbarth commented 1 year ago

When using goshs as http(s) server, I would like to define, which file from the base directory should be served as home page (e.g. index html). I found now option or config file for this purpose. Did I oversee something?

patrickhener commented 1 year ago

This is not the purpose of the tool. This tool serves as a drop in replacement for updog or pythons simpleHTTPServer/http.server. So the index page is not changeable. If you want an easy to setup webserver though you could look into caddy2.