31 个回复 | 最后更新于 2017-04-24
回复#25 @lincanbin :
貌似是Nginx http2的一个BUG。
https://imququ.com/post/nginx-http2-post-bug.html
我等借到苹果设备再测试了。
server
{
listen 80;
server_name study.nichx.cn;
return 301 https://$server_name$request_uri;
}
server
{
listen 443 ssl;
ssl_certificate 1_study.nichx.cn_bundle.crt;
ssl_certificate_key 2_study.nichx.cn.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
ssl_ciphers
ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
server_name study.nichx.cn;
access_log off;
index index.html index.htm index.php;
root /home/wwwroot/study.nichx.cn;
#error_page 404 /404.html;
# nginx configuration
error_page 404 /404.php;
# rewrite
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Git folder vulnerability
location /.git {
deny all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log off;
}这我的,暂时没啥问题
登录后方可回帖


粤公网安备 44030602003677号
回复#19 @lincanbin :
仔细看了下,Safari不能访问的问题,好像出在Apache那边,因为静态文件可以访问。
比如我有个tucao.moe/about.html,已写伪静态:
在Safari上访问tucao.moe/about无响应,访问tucao.moe/about.html就OK。
那么,WTF?