aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all
with 'JSON-RPC PATH' like http://hostname:port/jsonrpc
2. Recommend: Set --rpc-secret=<secret> if you are using aria2 1.18.4(or higher) with 'JSON-RPC PATH' like http://token:secret@hostname:port/jsonrpc
Set --rpc-user=<username> --rpc-passwd=<passwd> if you are using aria2 1.15.2(or higher) with 'JSON-RPC PATH' like http://username:passwd@hostname:port/jsonrpc
Visit index.html.
3.Change "JSON-RPC Path" setting if "Internal server error" occurred.