I would like to be able to set up a webserver on the same address as my node such that
curl https://iota.example.com
<html><body> Welcome to My IOTA Node! </body></html>
and
curl https://iota.example.com/api ...
{"appName":"IRI","appVersion":"1.4.1.2", ...
I can easily do this using a ProxyPass
in apache:
ProxyPass /api http://127.0.0.1:15265/
ProxyPassReverse /api http://127.0.0.1:15265/
And it works! I can use the address https://iota.example.com/api
to successfully make API calls to IRI; however, I cannot seem to be able to connect to it from a wallet.
At least using Light Wallet 2.5.4 w/ IR 1.4.1.2, paths do not seem to be accepted as part of the host address.
Is there a fundamental issue with running the API on a path? Or is this an issue in the wallet not properly parsing / handing paths? Will functionality be added for this?