-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathh2o.yml
48 lines (44 loc) · 1.42 KB
/
h2o.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
listen: 80 # accept HTTP on port 80 on default address (both IPv4 and IPv6)
hosts:
"127.0.0.1": # accept HTTP on 127.0.0.1
paths:
"/":
header.merge: "Cache-Control: must-revalidate"
file.dir: /srv/h2o
file.send-gzip: ON
access-log: /var/log/h2o.access.log
error-log: /var/log/h2o.error.log
pid-file: /var/run/h2o.pid
http2-reprioritize-blocking-assets: ON # performance tuning option
################################################################################
########################## Configuration with 2 paths ##########################
# hosts:
# "www.example.com":
# listen:
# port: 80
# paths:
# "/":
# file.dir: /path/to/doc-root
# "/assets":
# file.dir: /path/to/assets
################################################################################
######### Example using host-level listeners for HTTPS virtual hosting #########
# hosts:
# "www.example.com:443":
# listen:
# port: 443
# ssl:
# key-file: /path/to/www_example_com.key
# certificate-file: /path/to/www_example_com.crt
# paths:
# "/":
# file.dir: /path/to/doc-root_of_www_example_com
# "www.example.jp:443":
# listen:
# port: 443
# ssl:
# key-file: /path/to/www_example_jp.key
# certificate-file: /path/to/www_example_jp.crt
# paths:
# "/":
# file.dir: /path/to/doc-root_of_www_example_jp