Created
June 10, 2016 15:22
-
-
Save h-collector/5c6de481904444144cb13d9e6e8cb028 to your computer and use it in GitHub Desktop.
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
## 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