-
Notifications
You must be signed in to change notification settings - Fork 845
Reverse Proxy
Issam Maghni edited this page Dec 31, 2017
·
5 revisions
hosts:
"www.example.com":
listen:
port: 80
paths:
"/":
proxy.reverse.url: https://127.0.0.1:8080/
# proxy.preserve-host: ON # to not rewrite the incoming host:port
# proxy.timeout.keepalive: 0 # to explicitly disable persistent connections to the application server
"/assets": # serve asset files directly
file.dir: /path/to/asset-files
access-log: /path/to/the/access-log
error-log: /path/to/the/error-log
pid-file: /path/to/the/pid-file
http2-reprioritize-blocking-assets: ON # performance tuning option
If you are getting 400 Bad Request: malformed Host header
, add proxy.preserve-host: ON
.