[小白求助] nginx 问题 !

查看 20|回复 0
作者:wljn   
加了 auth_basic 密码验证 ,苹果手机上的浏览器打开网址后一片空白,安卓和 win 都正常
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";
}
}
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"
您需要登录后才可以回帖 登录 | 立即注册

返回顶部