Please I need some help on how to configure this.
I have little bakery and would like to create a local webserver to host a digital menu. Customers would access it via wireless router from any device with wi-fi connection, such as smartphones, tablets, notebooks, etc.
This wireless router would not be connected to any ISP, it would be connected only to the local network.
I would like customers that are connected to my wireless router and open internet browser, are automatically redirected to the local webserver URL with the digital menu, just like when you connect to the public hot-spot and forced to subscribe to any service.
So the elements in the network would be: client devices with wi-fi, wireless router and a PC with webserver.
You could do this if you had wifi gear that supported redirecting all requests to an auth page and then just make the auth page your menu instead of the actual auth page. The problem with this is that many phones will only use the wifi connection when both wifi and 3g/4g is available.
I know that I would avoid a place that hijacked my connection like that and I was forced to change settings on my phone to browse the web.
You can hack things together with DHCPd, IPTables/IPFW/pf and some creative CGI or PHP scripts, but the traditional thing to do is to get a pre-built solution like the one from BlueSocket. Less work / maintenance long-term.
Often wireless access points have a setting similar to "hotspot settings" or "enable HTTP redirect". This would allow you to initially send them to your local web server (probably using the IP address rather than a DNS entry".
You probably want a Captive Portal either running on a PC or running on WRT firmware.
Check out this question
They recommend using CoovaChilli it runs on a Linksys WRT54G using the Open-WRT firmware.