From 8bad25173bbe1a6d047284e27df1d59c6a670eeb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Nov 2014 11:58:19 +0100 Subject: Create slxlog URL dynamically depending on current script's directory --- apis/getconfig.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apis') diff --git a/apis/getconfig.inc.php b/apis/getconfig.inc.php index 164c1ac4..be35f5f3 100644 --- a/apis/getconfig.inc.php +++ b/apis/getconfig.inc.php @@ -25,7 +25,7 @@ while ($row = $res->fetch(PDO::FETCH_ASSOC)) { // Additional "intelligent" config // Remote log URL -echo "SLX_REMOTE_LOG='http://" . escape($_SERVER['SERVER_ADDR']) . "/slxadmin/api.php?do=clientlog'\n"; +echo "SLX_REMOTE_LOG='http://" . escape($_SERVER['SERVER_ADDR']) . escape($_SERVER['SCRIPT_NAME']) . "?do=clientlog'\n"; // vm list url echo "SLX_VMCHOOSER_BASE_URL='http://" . escape($_SERVER['SERVER_ADDR']) . "/vmchooser/'\n"; -- cgit v1.2.3-55-g7522