Hello, word!

In this example we show how to:
  • setup UnityBase HTTP server for handle static;
  • enable HTTP caching;

1. Setup UnityBase HTTP server

First of all we create server config ubConfig.json file:
{
	"HTTPServerType": "stHTTPSys",
	"logPath": "..\\logs",
	"logLevel": ["*"],
	"appConfigs": {
		"gs": {
			"domainName": "gettingStarted",
			"staticFolder": ".\\Web\\" /*folder for static. If set application handle static files request */
		}
	},
	"domainConfigs": {
		"gettingStarted": {
		}
	}
}
Here we:
Now you can run UnityBase by typing in console:
cd Samples\01_Static_HTTP_Server
start ub -c
and follow this link.

You can see static HTML page served by UnityBase HTTP server.

2. Enable HTTP caching

Let's enable HTTP caching for images:

3. More info