# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# To be safe, it is recommended to run this program with its own username:
# `sudo file_server -u nitcorn:www`
#
# To be safe, it is recommended to run this program with its own username:
# `sudo file_server -u nitcorn:www`
vh.routes.add new Route(null, new FileServer("www/hello_world/"))
var factory = new HttpFactory.and_libevent
factory.config.virtual_hosts.add vh
vh.routes.add new Route(null, new FileServer("www/hello_world/"))
var factory = new HttpFactory.and_libevent
factory.config.virtual_hosts.add vh