embedthis/appweb-4 — pull request #16 by jchampio (2012-07-20 21:24:28+00:00)
Title: Use a separate default host per MaServer instance

Previously, two MaServers configured during separate calls to ```maConfigureServer``` would use the same default host. For instance, if a first MaServer was configured using a configuration file that specified ```Listen 8080```, the default host would be set up on port 8080. If a second MaServer was configured using a file with ```Listen 8081```, that server would still use the default host on port 8080. This would cause requests to the second server to be incorrectly routed through the first.

Instead of treating the first host in ```http->hosts``` as the default host, this patch gives each MaServer its own default host instance to use during ```maValidateServer```.