From cc25c03e754706fb5ff4e85156eb39a070201b39 Mon Sep 17 00:00:00 2001 From: Diogo Martins <165835485+MDA2AV@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:45:54 +0000 Subject: [PATCH] Update h2o.conf to use mruby handler Replaced file directory configuration with mruby handler. --- src/Servers/H2OServer/h2o.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Servers/H2OServer/h2o.conf b/src/Servers/H2OServer/h2o.conf index 113e702..8b47c58 100644 --- a/src/Servers/H2OServer/h2o.conf +++ b/src/Servers/H2OServer/h2o.conf @@ -1,6 +1,10 @@ listen: 8080 + hosts: default: paths: /: - file.dir: /var/www + mruby.handler: | + Proc.new do |env| + [200, { "content-type" => "text/plain" }, ["OK"]] + end