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