Add Proxy Domain
SUMMARY
Add proxy domain host to enable Virtual Hosting on a shared IP Address. Requests to the host name will be proxied by the web server, and forwarded to the application server.
SCRIPT
/usr/ngasi/apiclient/bin/ncli.sh -user=myuser -password=coolgeek -url=http://localhost:8666 -command=addproxydomain -domain=mydomain.com
JAVA API
Properties properties = new Properties();
properties.put("url","http://localhost:8666");
properties.put("user","myuser");
properties.put("password","coolgeek");
properties.put("command","addproxydomain");
properties.put("domain","mydomain.com");
String result = NGAPIClient.exec(properties);