zhanbei / static-server

A static server in Go, supporting hosting static files in the no-trailing-slash version.
0 stars 0 forks source link

Support Site Configures in the Virtual Hosting Mode #1

Open zhanbei opened 4 years ago

zhanbei commented 4 years ago

Use site.config to configure the target site, like enabling or disabling no-trailing-slash mode.

zhanbei commented 4 years ago

As for (#2), some features may be better supported:

zhanbei commented 4 years ago

Use Regexp Paths Mapping to Serve Specific Files

Tag: Custom Dynamic Pages

It may be used to serve static single-page applications with dynamic routes;

Consider https://github.com/mjackson/history-server

zhanbei commented 4 years ago

Dynamic configuration files may be used to support configures per virtual site.

Like, load the configuration file with expiration (to init/reset options )for each site,