Skip to content

Instantly share code, notes, and snippets.

@yannick
Created July 14, 2017 09:31
Show Gist options
  • Select an option

  • Save yannick/337797c1b1a14ff339cb5ae819187038 to your computer and use it in GitHub Desktop.

Select an option

Save yannick/337797c1b1a14ff339cb5ae819187038 to your computer and use it in GitHub Desktop.
listen: 8080
hosts:
"127.0.0.1.xip.io:8080":
paths:
/:
mruby.handler: |
html = "hello world, i'm running h2o on #{OS.sysname}"
Proc.new do |env|
[200, {'content-type' => 'text/plain'}, [html]]
end
access-log: /dev/stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment