Skip to content

Instantly share code, notes, and snippets.

@negima1976
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save negima1976/322261ebc679178ea200 to your computer and use it in GitHub Desktop.

Select an option

Save negima1976/322261ebc679178ea200 to your computer and use it in GitHub Desktop.
Nginx + FastCGI + WordPress→h2o + FastCGI + WordPress
user: nobody
listen:
port: 80
host: 0.0.0.0
file.index: ['index.php', 'index.html']
file.send-gzip: ON
file.etag: OFF
expires: 1 day
hosts:
"hogehoge.com":
paths:
/:
file.dir: /wordpress
redirect:
url: /index.php/
internal: YES
status: 307
file.custom-handler:
extension: .php
fastcgi.connect:
port: /tmp/php-fpm/php-fpm.sock
type: unix
access-log: /var/log/h2o/access.log
error-log: /var/log/h2o/error.log
pid-file: /var/run/h2o.pid
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