A config that proxies to yay.im:8181
# to find out the configuration commands, run: h2o --help
-listen: 8080
listen:
port: 8081
ssl:
certificate-file: examples/h2o/server.crt
key-file: examples/h2o/server.key
hosts:
- "127.0.0.1.xip.io:8080":
- paths:
- /:
- file.dir: examples/doc_root
- access-log: /dev/stdout
- "alternate.127.0.0.1.xip.io:8081":
+ "*":
listen:
port: 8081
ssl:
@@ -20,5 +14,6 @@ hosts:
key-file: examples/h2o/alternate.key
paths:
/:
- file.dir: examples/doc_root.alternate
+ proxy.reverse.url: http://yay.im:8181
+ proxy.preserve-host: ON
access-log: /dev/stdout
