Starting from H2O version 2.0.0beta-1, it is possible to write a configuration like the following. The example maps all requests to a FastCGI server, with the exception of
/favicon.icobeing served statically.
paths: /: fastcgi.connect: port: /tmp/fcgi.sock type: unix /robots.txt: file.file: /path/to/robots.txt /favicon.ico: file.file: /path/to/favicon.pngPretty straight forward, isn't it?
For details, please refer to the updated documentation of
pathsdirective, or refer to the discussion in the pull request.