Skip to content

Instantly share code, notes, and snippets.

@chadrien
Created April 16, 2013 09:06
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 chadrien/5394508 to your computer and use it in GitHub Desktop.
Save chadrien/5394508 to your computer and use it in GitHub Desktop.
Symfony 2 Nginx configuration
server {
server_name domain.dev;
listen 80;
root /path/to/web;
index app_dev.php;
try_files $uri $uri/ /app_dev.php?$query_string;
location ~ \.php$ {
include fastcgi.conf;
fastcgi_pass unix:/path/to/php-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment