(教程)CaptivePortal搭建(即搭建去安卓感叹号服务器)
本文最后更新于 617 天前,其中的信息可能已经有所发展或是发生改变。
教程来自reallysnow,转载有些许更改

当你刷了类原生安卓系统或者使用Pixel时,会发现你的 WIFI 图标上一直都有个叹号,在设置会提示”此网络无法连接到互联网”。(实则正常使用,但是强迫症看他不爽,笑哭)

其实这个原因是因为国内网络绝大多数地区无法连接到Google,所以更换网址即可。
当然你也可以自己搭建
-教程如下

  1. 准备一台安装了NGINX(或者Apache)的服务器即可
  2. 写规则

如果你是NGINX,直接在NGINX配置文件加入

    location /generate_204
{
return 204;
}

如果你是Apache,安装rewrite模块并在.htaccess中加入如下

 RewriteEngine On
 RewriteCond %{REQUEST_URI} /generate_204$
 RewriteRule $ / [R=204]
</IfModule>
  1. 测试

我们用wget测试,返回204即成功(curl也行)

--2020-12-05 20:50:49--  https://reallysnow.top/generate_204
Resolving reallysnow.top (reallysnow.top)... 58.211.137.159
Connecting to reallysnow.top (reallysnow.top)|58.211.137.159|:443... connected.
HTTP request sent, awaiting response... 204 No Content
2020-12-05 20:50:51 (0.00 B/s) - 'generate_204' saved [0]
  1. 如果是宝塔面板,同理,直接在面板里面修改规则
    本文参考
https://blog.csdn.net/chitangli7842/article/details/100859524
https://blog.csdn.net/gsls200808/article/details/54574754
https://blog.starryvoid.com/archives/306.html

评论

  1. 博主
    1年前
    2021-7-16 21:05:22

    {!{data:image/webp;base64,UklGRpYLAABXRUJQVlA4WAoAAAAQAAAAxAMAKwEAQUxQSDcJAAABoEVtmyFJirFt27Zt27ax9m6O3T22fWrH1WPbtm3bEycn/oiKjIzKi/4vIiIcSrITNBdpUbANzAQRkh8gxn8x/mP8x/iP8R/jP8Z/jP8Y/zH+Y/zH+I+ZAOM/0Zr7Vs6zLGuMzz9FWI+7T6yEUCEZPYHM8f9XJWd8bCN1983PXn2m+snTE2H+7b9i1yhSIGT/ugaAWTSAaDmKbNm8fSyYG2z3D4iCS1xjdn29MSGJaZDJpzHFEYlcnC0PJPFf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bJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D1gAA/v+tHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==}!}

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇