From 491354951ba103e354e1eb37a0902247165b8651 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 16 Dec 2020 20:59:24 +0100 Subject: [PATCH] sub path --- conf/config-dist.php | 4 ++-- conf/nginx.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/config-dist.php b/conf/config-dist.php index a60dbe0..0f2477e 100644 --- a/conf/config-dist.php +++ b/conf/config-dist.php @@ -42,7 +42,7 @@ Setting('CURRENCY', 'EUR'); # Webserver root directory = /var/www # grocy directory = /var/www/grocy # => BASE_PATH = /grocy -Setting('BASE_PATH', ''); +Setting('BASE_PATH', '/grocy'); # The base url of your installation, # should be just "/" when running directly under the root of a (sub)domain @@ -55,7 +55,7 @@ Setting('BASE_URL', '/'); Setting('STOCK_BARCODE_LOOKUP_PLUGIN', 'DemoBarcodeLookupPlugin'); # If, however, your webserver does not support URL rewriting, set this to true -Setting('DISABLE_URL_REWRITING', true); +Setting('DISABLE_URL_REWRITING', false); # Specify an custom homepage if desired - by default the homepage will be set to the stock overview, # this needs to be one of the following values: diff --git a/conf/nginx.conf b/conf/nginx.conf index 0ab9560..2bdbad7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,7 +10,7 @@ location / { index index.php; - try_files $uri __PATH__/index.php; + #try_files $uri __PATH__/index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$;