Skip to content

FastCGI external server (e.g. php fpm)

l2dy edited this page Dec 24, 2015 · 5 revisions
hosts:
  "www.example.com":
    listen:
      port: 80
    paths:
      "/":
        file.dir: /path/to/doc-root   # serve static files if found

file.custom-handler:                  # connect to external FastCGI server listening to /tmp/fcgi.sock
  extension: .php
  fastcgi.connect:
    port: /tmp/fcgi.sock
    type: unix

access-log: /path/to/the/access-log
error-log: /path/to/the/error-log
pid-file: /path/to/the/pid-file
http2-reprioritize-blocking-assets: ON   # performance tuning option