Setup Virtual Hosts
This demonstration shows a virtual hosts configuration.
Download Multihome.zip. Uncompress this folder into the Demos folder located in the Neokernel directory.
It is set up so that requests for http://localhost/ will see the index.html page from the /localhost_html directory, while all other requests (e.g.
requests for http://127.0.0.1/) will see the index.html page in
the /default_html directory.
This happens because multiple HTTPFileServerAgents are described in
the XML config file, each with a unique service_name prop matching
the domain that agent should serve data for and a unique
html_directory prop with the content for that domain.
Updated: 7/8/10 4:21 PM