-->
Page 1 of 1

Landingpage for webserver possible?

PostPosted: Sat Feb 28, 2015 4:48 pm
by hackrid
Hi,

what is needed to redirect any HTTP requests to the internal webserver on the esp8266 module when in AP mode?
Some may refer to this as Splash Page as well.
DNS?
best regards

Re: Landingpage for webserver possible?

PostPosted: Wed Mar 18, 2015 11:21 am
by Israel Lot
I've done this on a project with ESP8266.
You will need:
1) DNS server that answers all or a list of domains to the module's ip address ( I got the domains used to detect captive portal by iphone and android phones )
2.) HTTP server that inspects the host header and redirect to a chosen one.
3.) The splash page itself :)

Re: Landingpage for webserver possible?

PostPosted: Wed Mar 18, 2015 11:45 am
by bjpirt
There was a discussion about this here:

viewtopic.php?f=6&t=1491&start=10

It is possible (apparently) and there was some code posted which might help you on your way