Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https 检测仍然无法工作 #21

Closed
Zxilly opened this issue May 3, 2021 · 2 comments · Fixed by #22
Closed

https 检测仍然无法工作 #21

Zxilly opened this issue May 3, 2021 · 2 comments · Fixed by #22
Assignees

Comments

@Zxilly
Copy link
Contributor

Zxilly commented May 3, 2021

image
wordpress和插件都是最新版本,php运行方式是cgi转发

@Zxilly
Copy link
Contributor Author

Zxilly commented May 3, 2021

我试了一下

<?php
var_dump(isset($_SERVER['HTTPS']))
?>

得到 bool(false)
这个应该就是问题所在了,但是我不知道为啥

@Zxilly
Copy link
Contributor Author

Zxilly commented May 3, 2021

我拿到了完整的 $_SERVER

array(41) { ["SERVER_SOFTWARE"]=> string(12) "nginx/1.19.3" ["REQUEST_URI"]=> string(21) "/wp-admin/profile.php" ["USER"]=> string(3) "www" ["HOME"]=> string(9) "/home/www" ["HTTP_COOKIE"]=> string(550) "remove for safe" ["HTTP_ACCEPT_LANGUAGE"]=> string(47) "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6" ["HTTP_ACCEPT_ENCODING"]=> string(17) "gzip, deflate, br" ["HTTP_REFERER"]=> string(124) "https://learningman.top/wp-admin/plugin-editor.php?file=wp-webauthn%2Fwwa-functions.php&plugin=wp-webauthn%2Fwp-webauthn.php" ["HTTP_SEC_FETCH_DEST"]=> string(8) "document" ["HTTP_SEC_FETCH_USER"]=> string(2) "?1" ["HTTP_SEC_FETCH_MODE"]=> string(8) "navigate" ["HTTP_SEC_FETCH_SITE"]=> string(11) "same-origin" ["HTTP_ACCEPT"]=> string(124) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ["HTTP_USER_AGENT"]=> string(130) "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51" ["HTTP_UPGRADE_INSECURE_REQUESTS"]=> string(1) "1" ["HTTP_SEC_CH_UA_MOBILE"]=> string(2) "?0" ["HTTP_SEC_CH_UA"]=> string(77) "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Microsoft Edge\";v=\"90\"" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["HTTP_HOST"]=> string(15) "learningman.top" ["PATH_INFO"]=> string(0) "" ["REDIRECT_STATUS"]=> string(3) "200" ["SERVER_NAME"]=> string(15) "learningman.top" ["SERVER_PORT"]=> string(3) "443" ["SERVER_ADDR"]=> string(12) "172.17.59.87" ["REMOTE_PORT"]=> string(5) "56199" ["REMOTE_ADDR"]=> string(14) "118.212.202.63" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["REQUEST_SCHEME"]=> string(4) "quic" ["SERVER_PROTOCOL"]=> string(8) "HTTP/3.0" ["DOCUMENT_ROOT"]=> string(28) "/www/wwwroot/learningman.top" ["DOCUMENT_URI"]=> string(21) "/wp-admin/profile.php" ["SCRIPT_NAME"]=> string(21) "/wp-admin/profile.php" ["CONTENT_LENGTH"]=> string(0) "" ["CONTENT_TYPE"]=> string(0) "" ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(0) "" ["SCRIPT_FILENAME"]=> string(49) "/www/wwwroot/learningman.top/wp-admin/profile.php" ["FCGI_ROLE"]=> string(9) "RESPONDER" ["PHP_SELF"]=> string(21) "/wp-admin/profile.php" ["REQUEST_TIME_FLOAT"]=> float(1620057346.905032) ["REQUEST_TIME"]=> int(1620057346) }

看起来可能是 QUIC 的原因?QUIC 默认就使用加密连接,是否可以添加一个判断?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants