Skip to content

Instantly share code, notes, and snippets.

@Nightbr
Created August 22, 2017 13:17
Show Gist options
  • Save Nightbr/4df08c628c4235c629edcfff2746176a to your computer and use it in GitHub Desktop.
Save Nightbr/4df08c628c4235c629edcfff2746176a to your computer and use it in GitHub Desktop.
Symfony dev project php-fpm.conf for kickoff-docker-php
server {
listen 80;
server_name _;
charset utf-8;
root /var/www/html/web;
index index.php index.html index.htm;
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
fastcgi_pass php-fpm:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SYMFONY_ENV dev;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment