Skip to content

Instantly share code, notes, and snippets.

View aopell's full-sized avatar

Aaron Opell aopell

View GitHub Profile
@kddlb
kddlb / recipe.conf
Created May 13, 2016 23:00
NGINX recipe for Polr and PHP 7
location / {
try_files $uri $uri/ /index.php?$query_string;
rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1;
}
location ~ \.(php|phar)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;