Skip to content

Instantly share code, notes, and snippets.

@bhubr
Created March 22, 2021 10:10
Show Gist options
  • Save bhubr/df4c0b40c11b663bcb0438b281e893ff to your computer and use it in GitHub Desktop.
Save bhubr/df4c0b40c11b663bcb0438b281e893ff to your computer and use it in GitHub Desktop.
Config file for H2O web server https://h2o.examp1e.net/ (with SSL & Gzip)
listen:
port: 80
user: nobody
compress: [ gzip ]
hosts:
"jsx.fr:80":
listen:
port: 80
paths:
"/":
redirect: https://jsx.fr/
"jsx.fr:443":
listen:
port: 443
ssl:
key-file: /etc/letsencrypt/jsx.fr/key.pem
certificate-file: /etc/letsencrypt/jsx.fr/cert.pem
paths:
/:
file.dir: /var/www/jsx.fr
access-log: /var/log/h2o/access-log
error-log: /var/log/h2o/error-log
pid-file: /var/run/h2o.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment