Created
August 22, 2015 00:55
-
-
Save negima1976/0361ead1d1c1a6c03794 to your computer and use it in GitHub Desktop.
h2o SSLの設定
This file contains 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
user: nobody | |
listen: | |
port: 80 | |
host: 0.0.0.0 | |
listen: | |
port: 443 | |
ssl: | |
key-file: /etc/pki/tls/private/server.key | |
certificate-file: /etc/pki/tls/certs/server.pem | |
max-connections: 1024 | |
file.index: ['index.php', 'index.html'] | |
file.send-gzip: ON | |
file.etag: OFF | |
expires: 1 day | |
hosts: | |
"hoge.com:80": | |
paths: | |
/: | |
redirect: https://hoge.com/ | |
"hoge.com:443": | |
paths: | |
/: | |
file.dir: /path/wordpress | |
file.dirlisting: OFF | |
redirect: | |
url: /index.php/ | |
internal: YES | |
status: 307 | |
file.custom-handler: | |
extension: .php | |
fastcgi.connect: | |
port: /var/run/php-fpm/php-fpm.sock | |
type: unix | |
access-log: "| exec rotatelogs /var/log/h2o/access.log.%Y%m%d 86400" | |
error-log: "| exec rotatelogs /var/log/h2o/error.log.%Y%m%d 86400" | |
pid-file: /var/run/h2o.pid | |
http2-reprioritize-blocking-assets: ON | |
header.unset: "X-Powered-By" | |
header.set: "X-Content-Type-Options: nosniff" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment