Skip to content

Instantly share code, notes, and snippets.

@chrisyue
Last active December 29, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisyue/7612590 to your computer and use it in GitHub Desktop.
Save chrisyue/7612590 to your computer and use it in GitHub Desktop.
server {
server_name ~^(?<project>.*)\.localhost$;
root /var/www/repos/$project/web;
index app_dev.php;
location ~ \.php($|/) {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
location / {
try_files $uri $uri/ /app_dev.php$uri?$args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment