Z-Push-contrib
Z-Push-contrib copied to clipboard
config for h2o webserver
for anyone who's interested, these are settings that seem to work for the h2o web server (I'm running it on FreeBSD with PHP-FPM on demand):
# vi: ft=yaml
# see https://h2o.examp1e.net/ for detailed documentation
# see h2o --help for command-line options and settings
user: www
pid-file: /var/run/h2o.pid
access-log: /var/log/h2o/h2o-access.log
error-log: /var/log/h2o/h2o-error.log
expires: 1 day
file.dirlisting: off
file.send-gzip: on
gzip: ON
#header.add: "x-frame-options: deny"
#header.add: "X-Content-Type-Options: nosniff"
#header.add: "strict-transport-security: max-age=15768000; includesubdomains; preload"
#header.add: "X-Xss-Protection: 1; mode=block"
listen:
host: 127.0.0.1
port: 80
listen:
host: 127.0.0.1
port: 443
ssl:
minimum-version: TLSv1.2
# generate your own certificates
certificate-file: /usr/local/etc/h2o/server.crt
key-file: /usr/local/etc/h2o/server.key
# per-host configuration
file.custom-handler:
extension: .php
fastcgi.connect:
port: /var/run/php-fpm.sock
type: unix
fastcgi.send-delegated-uri: OFF
fastcgi.timeout.io: 630000
fastcgi.timeout.keepalive: 630000
file.index: [ 'index.php' ]
hosts:
example.com:
paths:
"/":
file.dir: "/usr/local/www/push"
redirect:
url: /index.php/
internal: YES
status: 307
"/Microsoft-Server-ActiveSync":
redirect:
url: /index.php/
internal: YES
status: 307