zhanbei / static-server

A static server in Go, supporting hosting static files in the no-trailing-slash version.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default folder in the Virtual Hosting Mode

zhanbei opened this issue · comments

A default folder may be added for the requests carrying unknown hosts, to:

  • customize 404 pages;
  • navigate users to useful sites;
  • redirect to target sites;
  • suspect potential attacks;
  • etc;