From 77636e86025ea1135f85183e0136614bb8e6b3c8 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 23 Feb 2017 17:33:51 +0000 Subject: [PATCH] Trying to sort out why '/' results in a 403 --- travis/default-site.tpl.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/travis/default-site.tpl.conf b/travis/default-site.tpl.conf index c0bb9b1f..b823a6c4 100644 --- a/travis/default-site.tpl.conf +++ b/travis/default-site.tpl.conf @@ -7,13 +7,13 @@ server { access_log /tmp/access.log; error_log /tmp/error.log; - location ~* "\.php(/|$)" { - include fastcgi.conf; - fastcgi_pass php; - } - location / { # First attempt to serve request as file, then as directory, then fall back to index.php. try_files $uri $uri/ /index.php$is_args$args; } + + location ~* "\.php(/|$)" { + include fastcgi.conf; + fastcgi_pass php; + } }