【求助】nginx 问题 !!!

查看 44|回复 2
作者:红白菜   
为啥我加了auth_basic密码验证 ,苹果手机上的浏览器打开网址后一片空白,安卓和win都正常
nginx 日志
49.87.0.xx - 123456 [30/Aug/2023:10:39:33 +0000] "GET / HTTP/1.1" 200 228 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1"
49.87.0.xx - 123456 [30/Aug/2023:10:39:33 +0000] "GET /main.css HTTP/1.1" 304 0 "http://adb.yangddns.eu.org/" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1"
49.87.0.xx - 123456 [30/Aug/2023:10:39:33 +0000] "GET /bundle.js HTTP/1.1" 304 0 "http://adb.yangddns.eu.org/" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1"
49.87.0.xx - - [30/Aug/2023:10:39:33 +0000] "GET /?action=multiplex HTTP/1.1" 401 179 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1"
server {
    listen 80;
    server_name test.com;
    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/.htpasswd;
    location / {
           proxy_pass http://127.0.0.1:8000;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "Upgrade";
    }
}

机上, 为啥, 空白

huhu   
304代码是缓存了吧
红白菜
OP
  

huhu 发表于 2023-8-30 18:50
304代码是缓存了吧

我清除了 还是不行  就苹果机的浏览器会出这问题
全网搜了个遍 硬是没找到问题在哪
您需要登录后才可以回帖 登录 | 立即注册

返回顶部