Update setup-phalcon.rst

This commit is contained in:
TheGlenn88 2018-11-08 08:54:12 +00:00 committed by GitHub
parent 0f57b9f623
commit 8f14054606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.