From 8f1405460650b9c00315ce835f256e2bafd03117 Mon Sep 17 00:00:00 2001 From: TheGlenn88 Date: Thu, 8 Nov 2018 08:54:12 +0000 Subject: [PATCH] Update setup-phalcon.rst --- docs/examples/setup-phalcon.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/examples/setup-phalcon.rst b/docs/examples/setup-phalcon.rst index 0e6bf78f..3cff0685 100644 --- a/docs/examples/setup-phalcon.rst +++ b/docs/examples/setup-phalcon.rst @@ -174,14 +174,14 @@ Copy the default nginx config from ./cfg/vhost-gen/nginx.yml-example to ./data/w Carefully edit the nginx.yml file and change: -try_files $uri $uri/ /index.php$is_args$args; +``try_files $uri $uri/ /index.php$is_args$args;`` to -try_files $uri $uri/ /index.php?_url=$uri&$args; +``try_files $uri $uri/ /index.php?_url=$uri&$args;`` and -location ~ \.php?$ { +``location ~ \.php?$ {`` to -location ~ [^/]\.php(/|$) { +``location ~ [^/]\.php(/|$) {`` -save the file as nginx.yml and ensure not to use any tabs in the file or devilbox will not use the custom configuration. You can use yamllint nginx.yml to check the file before restarting devilbox. +save the file as nginx.yml and ensure not to use any tabs in the file or devilbox will not use the custom configuration. You can use ``yamllint nginx.yml`` whilst inside the Devilbox shell to check the file before restarting devilbox.