[英]Blank page (ssl error) when I am trying to access my website with a 4G connection?
我的一些客戶在嘗試使用 4G 互聯網訪問我的網站時正在嘗試空白頁面。
通過積累案例,我發現它總是一個特定的4G供應商:布依格電信(法國供應商)。 可能是其他提供者,但這是最經常出現的。
我有一個運行 Nginx 和 php5 的 Ubuntu 網絡服務器。
可悲的是,我找不到那些空白屏幕連接的任何 nginx 日志。
當我與筆記本電腦共享布依格 4G 連接時,我也遇到了 mozzila 上的 PR_CONNECT_RESET_ERROR 的問題。 或者小米手機上的 ERR_CONNECTION_RESET。
最后一軌,我可以通過這個 4G 連接訪問我的預生產網站,它沒有 ssl 配置。
有人對我正在試驗的東西有想法。
您將在我的 nginx conf 下方找到:
server {
listen 80 default_server;
allow all;
server_name _;
return 301 https://$host$request_uri;
}server {
listen 443 default_server ssl;
allow all;
ssl on;
ssl_certificate /etc/nginx/ssl/2020_easyrenter.crt;
ssl_certificate_key /etc/nginx/ssl/easyrenter.fr.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
ssl_prefer_server_ciphers on;
ssl_session_cache builtin:1000 shared:SSL:10m;
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';
ssl_stapling_verify on;
resolver 8.8.4.4 8.8.8.8 valid=300s;
resolver_timeout 10s; server_name www.easyrenter.fr easyrenter.fr 46.101.103.115;
root /home/deploy/easyrenter/current/; location = /sitemap.xml {
alias /home/deploy/easyrenter/current/sitemap.xml;
} location = /sitemaps/en/sitemap.xml {
alias /home/deploy/easyrenter/current/sitemaps/en/sitemap.xml;
} location = /sitemaps/fr/sitemap.xml {
alias /home/deploy/easyrenter/current/sitemaps/fr/sitemap.xml;
} location / {
index index.html index.php;
try_files $uri/ @handler;
expires 30d;
} location ~ \.(js|css|png|jpg|gif|ico|pdf|tiff|swf) {
try_files $uri $uri/;
expires 356d;
} location ^~ /app/ {deny all;}
location ^~ /includes/ {deny all;}
#location ^~ /lib/ {deny all;}
location ^~ /media/downloadable/ {deny all;}
location ^~ /pkginfo/ {deny all;}
location ^~ /report/config.xml {deny all;}
location ^~ /var/ {deny all;} location /var/export {
auth_basic "restricted";
auth_basic_user_file htpasswd;
autoindex on;
} location /. {
return 404;
} location @handler {
rewrite / /index.php;
}# location ~ .php {
# rewrite ^(.*.php)/ $1 last;
# } location ~ \.php$ {
if (!-e $request_filename) { rewrite / /index.php last;}
expires off;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param HTTPS $fastcgi_https;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
proxy_read_timeout 300; } #Poids max des upload files
client_max_body_size 32M; include /etc/nginx/nginx-redirection.conf;
}
我找到了解決方案。
布依格 4G 迫使我的服務器使用 IPV6。
起初,使用 4G Bouygues 的用戶的請求頁面停止了。 猜測這是一個 IPV6 問題,我在我的服務器上激活了一個 IPV6,並在我的 DNS 上添加了一個 AAAA 條目。
然后 4G Bouygues 用戶有一個空白頁,因為我的 nginx conf 中沒有聲明 IPV6。 下面是我的補充:
server {
listen 80;
**listen [::]:80;**
allow all;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 default_server ssl http2;
**listen [::]:443 default_server ssl http2;**
希望它會幫助別人,阿克塞爾
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.