Skip to content

Commit

Permalink
api url changed
Browse files Browse the repository at this point in the history
  • Loading branch information
nasirbest committed Jan 15, 2018
1 parent 277eb26 commit 2af9d7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion etc/http/ictcore.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Alias /ictcore/api /usr/ictcore/wwwroot
Alias /api /usr/ictcore/wwwroot

<Directory /usr/ictcore/wwwroot>
php_admin_value open_basedir "/usr/ictcore/:/usr/bin:/bin:/tmp/"

Expand Down
6 changes: 3 additions & 3 deletions etc/ictcore.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion wwwroot/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DirectoryIndex index.php
<IfModule mod_rewrite.c>
# Turn Rewrite Engine on
RewriteEngine On
RewriteBase /ictcore/api/
RewriteBase /api/

## To allow Cross-origin access enable following code
# For cors preflight options request
Expand Down

0 comments on commit 2af9d7a

Please sign in to comment.