Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created March 10, 2011 23:36
Show Gist options
  • Select an option

  • Save hobodave/865185 to your computer and use it in GitHub Desktop.

Select an option

Save hobodave/865185 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name s4.local ~^(?<d>\w+)\.s4\.local$;
server_name_in_redirect off;
root /Library/WebServer/Documents/$d;
index bootstrap.php;
try_files $uri $uri/ bootstrap.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_index bootstrap.php;
fastcgi_param APPLICATION_ENV development;
fastcgi_param CUSTOMER $d;
fastcgi_read_timeout 300;
include fastcgi.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment