From: Sarah Hoffmann Date: Wed, 16 Sep 2020 09:13:51 +0000 (+0200) Subject: remove host from default website URL X-Git-Tag: v3.6.0~77^2~6 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8ff1f16b7f53dbb32bab36d5de964f3cd01c874c remove host from default website URL Just assume that Nominatim runs under the root URL. This is a more versatile base that also makes 'make serve' work out of the box. --- diff --git a/settings/defaults.php b/settings/defaults.php index 7a7a1e6f..02b11237 100644 --- a/settings/defaults.php +++ b/settings/defaults.php @@ -85,7 +85,7 @@ if (file_exists(CONST_InstallPath.'/settings/local.php')) require_once(CONST_Ins // Website settings @define('CONST_NoAccessControl', true); -@define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/'); +@define('CONST_Website_BaseURL', '/'); // Language to assume when none is supplied with the query. // When set to false, the local language (i.e. the name tag without suffix) // will be used.