From 2af9d7ac37c1e5535dcb689407ba0c25c193ddd2 Mon Sep 17 00:00:00 2001 From: Nasir Iqbal Date: Mon, 15 Jan 2018 18:23:34 +0500 Subject: [PATCH] api url changed --- etc/http/ictcore.conf | 3 ++- etc/ictcore.conf | 6 +++--- wwwroot/.htaccess | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/http/ictcore.conf b/etc/http/ictcore.conf index a231480..1489e72 100644 --- a/etc/http/ictcore.conf +++ b/etc/http/ictcore.conf @@ -1,4 +1,5 @@ -Alias /ictcore/api /usr/ictcore/wwwroot +Alias /api /usr/ictcore/wwwroot + php_admin_value open_basedir "/usr/ictcore/:/usr/bin:/bin:/tmp/" diff --git a/etc/ictcore.conf b/etc/ictcore.conf index 6c3f503..611fbea 100755 --- a/etc/ictcore.conf +++ b/etc/ictcore.conf @@ -8,8 +8,8 @@ address = PK title = 'ICTCore Framework' host = localhost port = 80 -path = /ictcore/api/ -url = http://localhost/ictcore +path = /api/ +url = http://localhost/api log = error warning notice info flow cookie = ictcore cors = @@ -21,7 +21,7 @@ private_key = /usr/ictcore/etc/ssh/ib_node public_key = /usr/ictcore/etc/ssh/ib_node.pub [gatewayhub] -url = http://localhost/ictcore/gateway.php +url = http://localhost/api/gateway.php username = myuser password = plsChangeMe diff --git a/wwwroot/.htaccess b/wwwroot/.htaccess index 185b07c..91353a9 100755 --- a/wwwroot/.htaccess +++ b/wwwroot/.htaccess @@ -14,7 +14,7 @@ DirectoryIndex index.php # Turn Rewrite Engine on RewriteEngine On - RewriteBase /ictcore/api/ + RewriteBase /api/ ## To allow Cross-origin access enable following code # For cors preflight options request