Created
March 22, 2021 10:10
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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