I'm manually implementing a WiFi captive portal. I've got everything pretty much working BUT a single hitch: i want everyone to see their mobile OSs' (or computer OSs') captive portal popup for a flawless experience.
Since each one of them has its own twisted way of doing it i'm seemingly unable to get a consistent cross-platform experience.
To make this happen, can I have some help to describe either (1) what URL requests from WiFi clients need to be redirected to a login page, and/or (2) what nginx or apache web server configuration can be used to redirect WiFi clients to a login page?
My captive portal login page in this example is http://captiveportal.lan . Here are some of the Operating Systems I am trying to resolve this for.
Android 4/5/6
- Apache:
RedirectMatch 302 /generate_204 http://captiveportal.lan
- nginx: ?
Previous Android versions
- Apache: ?
- nginx: ?
iOS 8
Apache .htaccess:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport(.*)$ [NC]
RewriteRule ^(.*)$ http://captiveportal.lan [L,R=302]
nginx: ?
Previous iOS versions
- Apache: ?
- nginx: ?
Windows phone
- Apache:
RedirectMatch 302 /ncsi.txt http://captiveportal.lan
- nginx: ?
Windows 7\8\10
- Apache: see windows phone (works on win7).
- nginx: ?
Mac OS
- Apache: ?
- nginx: ?
Amazon Kindle - does it have a popup?
- Apache: ?
- nginx: ?