From baacfa794a28e041cf6cbf22fa3528389fc8db8f Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 3 Jun 2016 11:21:35 -0600 Subject: [PATCH] Updated nginx configuration --- CHANGELOG.md | 1 + webserver-configs/nginx.conf | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ed573181..26754b1e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Added getters and setters for Assets to allow manipulation of CSS/JS/Collection based assets via plugins [#876](https://github.com/getgrav/grav/issues/876) 1. [](#improved) * Moved list items in `system/config/media.yaml` config into a `types:` key which allows you delete default items. + * Updated `webserver-configs/nginx.conf` with `try_files` fix from @mrhein and @rondlite [#743](https://github.com/getgrav/grav/pull/743) # v1.1.0-rc.1 ## 06/01/2016 diff --git a/webserver-configs/nginx.conf b/webserver-configs/nginx.conf index 04d179889..f002a8767 100644 --- a/webserver-configs/nginx.conf +++ b/webserver-configs/nginx.conf @@ -12,8 +12,7 @@ server { # `location /subfolder {` # and the rewrite to use `/subfolder/index.php` location / { - try_files $uri $uri/ /index.html; - if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; } + location / { try_files $uri $uri/ /index.php?_url=$uri; } } ## End - Index