From 7d49a363532f8a2bd384dc88c5405563e68d5c97 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 21 Feb 2015 14:34:09 +0000 Subject: [PATCH] Make Heroku nginx deployment work --- Procfile | 2 +- nginx.conf | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Procfile b/Procfile index 568d1a24..830e01eb 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: vendor/bin/heroku-php-nginx public/ \ No newline at end of file +web: vendor/bin/heroku-php-nginx -C nginx.conf public \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 2132b3d9..a944f411 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,8 @@ location / { + index index.php; try_files $uri $uri/ /index.php?$query_string; } -if (!-d $request_filename) { - rewrite ^/(.+)/$ /$1 permanent; -} - location ~ /\.ht { deny all; -} \ No newline at end of file +}