From fa818e09242171295caf1386bebc2db4b65f24ee Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 27 Apr 2017 02:49:06 +0200 Subject: [PATCH] Configure nginx [skip ci] --- Procfile | 2 +- nginx_app.conf | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Procfile b/Procfile index 7f25f10eb9..3191e014de 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: vendor/bin/heroku-php-nginx public/ -C nginx_app.conf +web: vendor/bin/heroku-php-nginx -C nginx_app.conf public/ diff --git a/nginx_app.conf b/nginx_app.conf index da8b8eea52..b0a4d0ee32 100644 --- a/nginx_app.conf +++ b/nginx_app.conf @@ -1,7 +1,7 @@ location / { - try_files $uri $uri/ /index.php?$query_string; - autoindex on; - sendfile off; - } -client_max_body_size 300M; -index index.php index.html index.htm; \ No newline at end of file + try_files $uri @rewriteapp; +} + +location @rewriteapp { + rewrite ^(.*)$ /index.php$1 last; +} \ No newline at end of file