Skip to content

Instantly share code, notes, and snippets.

@pierswarmers
Last active December 10, 2015 16:59
Show Gist options
  • Select an option

  • Save pierswarmers/4464715 to your computer and use it in GitHub Desktop.

Select an option

Save pierswarmers/4464715 to your computer and use it in GitHub Desktop.
Nginx config for Symfony2
server {
server_name www;
root /usr/share/nginx/www;
index app.php;
try_files $uri $uri/ /app.php?$query_string;
location ~ ^/(app_dev|app)\.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment