Skip to content

Instantly share code, notes, and snippets.

@h-collector
Created June 10, 2016 15:22
Show Gist options
  • Save h-collector/5c6de481904444144cb13d9e6e8cb028 to your computer and use it in GitHub Desktop.
Save h-collector/5c6de481904444144cb13d9e6e8cb028 to your computer and use it in GitHub Desktop.
## host
localhost:9090
## log access and errors to console
errors stderr
log stdout
## if need for https
## openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout cert.key -out cert.crt
#tls cert.crt cert.key
## enable compression
gzip
## root dir
root ./public
## use php-fpm via socket
fastcgi / /run/php/php7.0-fpm.sock php
## emulate mod_rewire, nginx rewrite
rewrite {
r .*
ext /
to /index.php?{query}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment