-->
Page 1 of 2

HTTP communication tunneling through remote server

PostPosted: Sat Apr 25, 2015 2:49 am
by Patriko
Hi!

I'd like to make devices runing esp-httpd accessible "from the Internet", everywhere, without any additional router (e.g. port forwarding) configuration. Just "plug&play".

The idea is to use the remote linux server, e.g. mylittlehome.com where will be some kind of deamon / apache / etc. and esp8266 devices will connect to it and listen. When somebody will call e.g. http://mylittlehome.com/gardenRelay request will be redirected to the esphttpd which will parse it and generate response.

In previous project we did it with linux based devices and it was working very good, but I was responsible for the hardware not software, so I've no idea about the details and person who developed this part is not in touch with us anymore.

Any suggestions how to start?
Thanks!
Patriko

Re: HTTP communication tunneling through remote server

PostPosted: Sat Apr 25, 2015 12:19 pm
by Sprite_tm
You should be able to use eg Apache in reverse proxy mode. Config for Apache is here: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#forwardreverse but I'd think you should be able to do this with any server which has a reverse proxy mode.

Re: HTTP communication tunneling through remote server

PostPosted: Sun Apr 26, 2015 3:20 am
by Patriko
Thanks! I'll check it out:)

Re: HTTP communication tunneling through remote server

PostPosted: Sun Apr 26, 2015 5:16 am
by Patriko
But it seems that reverse proxy requires direct access to the esp, e.g. in local network, isn't it?

Code: Select allProxyPass       /firsturl/  http://192.168.0.1/
ProxyPassReverse /firsturl/  http://192.168.0.1/
ProxyPass       /secondurl/  http://192.168.0.2/
ProxyPassReverse /secondurl/  http://192.168.0.2/


The idea was that esp runing esphttpd device is able to connect to proxy server from anywhere, for e.g. using McDonald's hotspot, using it known address and open a bridge which will allow to be accessed from anywhere, through the proxy. Is it possible with the reverse proxy?