Skip to content

Instantly share code, notes, and snippets.

@swalkinshaw
Created April 18, 2014 15:29
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 swalkinshaw/11050051 to your computer and use it in GitHub Desktop.
Save swalkinshaw/11050051 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.dev;
access_log /var/logs/nginx/example.dev.access.log;
error_log /var/logs/nginx/example.dev.error.log;
root /srv/www/example.dev/current/web;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment