Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2012 08:41
Show Gist options
  • Save anonymous/3038535 to your computer and use it in GitHub Desktop.
Save anonymous/3038535 to your computer and use it in GitHub Desktop.
server {
listen 80;
root /srv/www/example.com;
server_name example.com;
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/app(_dev)?.php$ {
internal;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
}
location ~ \.php {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment