- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Ubuntu 18.04.1 Nginx 1.14.0 和 HTTP2 和 PHP 7.2.7 设置新服务器 这是我尝试设置的第一台同时启用 IPv4 和 IPv6 的服务器。一切正常,直到我测试了一个缺少大量图像的页面。服务器似乎需要很长时间才能意识到它们丢失并响应 http 请求。一些丢失的文件给出了“502 错误网关”的 HTTP 状态。是否是 DNS 问题导致了这些延迟和 502 错误,我应该在设置中更改什么?
编辑:这里可能有很多不必要的信息,但由于尚不清楚服务器 react 太慢的原因,其中一些可能很重要。
php 脚本应该不是问题,我的旧服务器,页面完全相同,加载速度非常快。
区域文件具有 IPv4 和 IPv6 的记录。
编辑:下面的整个 DNS 理论可能不是原因,请参阅:Why does this nginx server redirect to a wrong domain? .
服务器重定向到错误的域。当强制 nginx 服务器只监听 IPv4 并浏览到 server1.eu 时,SSL 证书不匹配(仅对 server2.eu 有效),并且在强制接受证书后有一个 301 重定向到 server2.eu
现在,当我从启用站点的服务器中删除服务器“server2.eu”并重新加载 nginx 时,SSL 证书不匹配和重定向不会发生。从启用站点的服务器中删除服务器“server2.eu”,并在 nginx 服务器设置中禁用 server1.eu 服务器 IPv4,当浏览到 server1.eu 时会导致“没有连接到服务器”从站点中删除服务器“server2.eu” -启用,并且 server1.eu 服务器 IPv6 从 nginx 服务器设置中禁用,这会导致服务器变慢。然后我再次恢复 server2.eu 服务器并从 nginx 服务器设置中禁用 server1.eu 服务器 IPv4,结果:SSL 证书不匹配(仅对 server2.eu 有效)并在强制接受证书 301 重定向到 server2.eu 后禁用 server1.eu 服务器来自 nginx 服务器设置的 IPv6 导致服务器快速,“服务器慢”问题得到解决,因此 server1.eu 依赖于错误的服务器才能正常工作。同时 IPv6 地址 [2a03:b0c0:0:1010::190:6001] 仍然重定向到 server1.eu
编辑:服务器的一个区别是旧的有 http1.1 和新的 http2。禁用 http2 解决了超长加载和 502 错误。页面的加载时间仍然比旧服务器长(6.40 秒与 3.18 秒)
当增加/etc/php/7.2/fpm/pool.d/www.conf 中的设置时,错误消失并且加载时间仍然很长:8,4 秒与 3,16 秒,但更接近旧服务器:
pm.max_children = 100
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 30
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
root@host:~# curl https://server1.eu/portfolio-2 > curltest.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11104 0 11104 0 0 31103 0 --:--:-- --:--:-- --:--:-- 31103
root@host:~# curl -4 https://server1.eu/portfolio-2 > curltest.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11104 0 11104 0 0 99142 0 --:--:-- --:--:-- --:--:-- 99142
root@host:~# curl -6 https://server1.eu/portfolio-2 > curltest.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11104 0 11104 0 0 101k 0 --:--:-- --:--:-- --:--:-- 101k
root@server1:~# curl https://server1.eu/portfolio-2 > curltest.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11088 0 11088 0 0 49681 0 --:--:-- --:--:-- --:--:-- 49721
/etc/nginx/sites-enabled/server1.eu
/etc/nginx/sites-enabled/server2.eu
/etc/nginx/sites-enabled/server1.eu: listen 80 default_server;
/etc/nginx/sites-enabled/server1.eu: listen [::]:80 default_server;
/etc/nginx/sites-enabled/server1.eu: listen 443 ssl http2 default_server;
/etc/nginx/sites-enabled/server1.eu: listen [::]:443 ssl http2 default_server;
/etc/nginx/sites-enabled/server2.eu: listen 80;
/etc/nginx/sites-enabled/server2.eu: listen [::]:80;
/etc/nginx/sites-enabled/server2.eu: listen 443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen [::]:443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen 443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen [::]:443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen 443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen [::]:443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen 443 ssl http2;
/etc/nginx/sites-enabled/server2.eu: listen [::]:443 ssl http2;
127.0.0.1 localhost
::1 localhost
2a03:b0c0:0:1010::190:6001 localhost
#host.server1.eu is the hostname of the server
127.0.1.1 host.server1.eu
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
server {
listen 80;
listen [::]:80;
return 301 https://server1.eu;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/server1.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server1.eu/privkey.pem;
include snippets/ssl-params.conf;
server_name server1.eu;
root /var/www/server1.eu/webroot;
index index.php index.html index.htm ;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
server {
listen 80;
listen [::]:80;
server_name server2.eu www.server2.eu test.server2.eu mail.server2.eu;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/server2.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server2.eu/privkey.pem;
include snippets/ssl-params.conf;
server_name www.server2.eu;
return 301 https://server2.eu$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/server2.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server2.eu/privkey.pem;
include snippets/ssl-params.conf;
server_name server2.eu test.server2.eu mail.server2.eu;
root /var/www/server2.eu/webroot;
index index.php index.html index.htm ;
location / {
try_files $uri $uri/ /index.php?page=$uri;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 2048;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
# keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_comp_level 2;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 100m;
large_client_header_buffers 4 8k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 500; #gateway probleem
client_body_timeout 12;
client_header_timeout 12;
keepalive_timeout 25;
send_timeout 10;
}
2018/08/30 16:25:27 [error] 29228#29228: *76 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 2a02:a440:91e3:1:4481:654b:a3e8:9617, server: server1.eu, request: "GET /images/klanten1/JHoogeveen.gif HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "server1.eu", referrer: "https://server1.eu/portfolio-2"
[30-Aug-2018 16:16:08] WARNING: [pool www] server reached pm.max_children setting (15), consider raising it
[30-Aug-2018 16:16:27] WARNING: [pool www] child 29026, script '/var/www/server1.eu/webroot/index.php' (request: "GET /index.php") execution timed out (22.937711 sec), terminating
[30-Aug-2018 16:16:27] WARNING: [pool www] child 29245 exited on signal 15 (SIGTERM) after 20.490546 seconds from start
[30-Aug-2018 16:16:27] NOTICE: [pool www] child 29263 started
GET https://server1.eu/portfolio-2 [HTTP/2.0 200 OK 132ms]
GET https://server1.eu/templates/purity_iii/css/bootstrap.css [HTTP/2.0 200 OK 40ms]
GET https://server1.eu/templates/system/css/system.css [HTTP/2.0 200 OK 50ms]
GET https://server1.eu/templates/purity_iii/css/template.css [HTTP/2.0 200 OK 50ms]
GET https://server1.eu/templates/purity_iii/fonts/font-awesome/css/font-awesome.min.css [HTTP/2.0 200 OK 50ms]
GET https://server1.eu/templates/purity_iii/css/layouts/corporate.css [HTTP/2.0 200 OK 50ms]
GET https://server1.eu/media/jui/js/jquery.min.js?48b6d1b3850bca834b403c58682b4579 [HTTP/2.0 200 OK 60ms]
GET https://server1.eu/media/jui/js/jquery-noconflict.js?48b6d1b3850bca834b403c58682b4579 [HTTP/2.0 200 OK 60ms]
GET https://server1.eu/media/jui/js/jquery-migrate.min.js?48b6d1b3850bca834b403c58682b4579 [HTTP/2.0 200 OK 60ms]
GET https://server1.eu/media/system/js/caption.js?48b6d1b3850bca834b403c58682b4579 [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/plugins/system/t3/base-bs3/bootstrap/js/bootstrap.js? 8b6d1b3850bca834b403c58682b4579 [HTTP/2.0 200 OK 80ms]
GET https://server1.eu/plugins/system/t3/base-bs3/js/jquery.tap.min.js [HTTP/2.0 200 OK 80ms]
GET https://server1.eu/plugins/system/t3/base-bs3/js/script.js [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/plugins/system/t3/base-bs3/js/menu.js [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/templates/purity_iii/js/script.js [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/plugins/system/t3/base-bs3/js/nav-collapse.js [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/templates/purity_iii/css/custom-server1.css [HTTP/2.0 200 OK 70ms]
GET https://server1.eu/images/klanten1/schipper2.gif [HTTP/2.0 502 Bad Gateway 23988ms]
GET https://server1.eu/images/klanten1/Kuiper.gif [HTTP/2.0 502 Bad Gateway 24038ms]
GET https://server1.eu/images/klanten1/WindMatch.gif [HTTP/2.0 502 Bad Gateway 24008ms]
GET https://server1.eu/images/klanten1/Tuinland.gif [HTTP/2.0 502 Bad Gateway 24018ms]
GET https://server1.eu/images/klanten1/Wezenberg.gif [HTTP/2.0 502 Bad Gateway 24038ms]
GET https://server1.eu/images/klanten1/Morgenster.gif [HTTP/2.0 502 Bad Gateway 23998ms]
GET https://server1.eu/images/klanten1/Harrie-boerhof.gif [HTTP/2.0 502 Bad Gateway 24028ms]
GET https://server1.eu/images/klanten1/Lococensus.gif [HTTP/2.0 502 Bad Gateway 23998ms]
GET https://server1.eu/images/klanten1/JHoogeveen.gif [HTTP/2.0 502 Bad Gateway 23978ms]
GET https://server1.eu/images/klanten1/DeDeur.gif [HTTP/2.0 502 Bad Gateway 23988ms]
GET https://server1.eu/images/klanten1/Runhaar.gif [HTTP/2.0 502 Bad Gateway 23958ms]
GET https://server1.eu/images/klanten1/Schunselaar-schildersbedrijf.gif [HTTP/2.0 502 Bad Gateway 23948ms]
GET https://server1.eu/images/klanten1/Capelle.gif [HTTP/2.0 502 Bad Gateway 23958ms]
GET https://server1.eu/images/klanten1/Distantlake.gif [HTTP/2.0 502 Bad Gateway 24038ms]
GET https://server1.eu/images/klanten1/Eikenaar.gif [HTTP/2.0 502 Bad Gateway 24018ms]
GET https://server1.eu/images/klanten1/FFWD.gif [HTTP/2.0 404 Not Found 26274ms]
GET https://server1.eu/images/klanten1/Veltec.gif [HTTP/2.0 404 Not Found 26791ms]
GET https://server1.eu/images/klanten1/Heutink.gif [HTTP/2.0 404 Not Found 26811ms]
GET https://server1.eu/images/klanten1/Lindeboom.gif [HTTP/2.0 404 Not Found 26777ms]
GET https://server1.eu/images/klanten1/aataxi.gif [HTTP/2.0 404 Not Found 26828ms]
GET https://server1.eu/images/klanten1/Aewind.gif [HTTP/2.0 404 Not Found 26811ms]
GET https://server1.eu/images/klanten1/Praatmaatgroep.gif [HTTP/2.0 404 Not Found 26800ms]
GET https://server1.eu/media/system/css/system.css [HTTP/2.0 200 OK 20ms]
JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:542
GET https://server1.eu/images/logo.gif [HTTP/2.0 200 OK 20ms]
GET https://server1.eu/images/reclame-en-communicatie.gif [HTTP/2.0 200 OK 20ms]
GET https://server1.eu/fonts/opensans-regular-webfont.woff [HTTP/2.0 200 OK 40ms]
GET https://server1.eu/templates/purity_iii/fonts/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0 [HTTP/2.0 200 OK 70ms]
200 GET portfolio-2 server1.eu document html 4,16 KB 10,84 KB → 267 ms
200 GET custom-server1.css server1.eu stylesheet css 4,09 KB 16,65 KB → 70 ms
404 GET schipper2.gif server1.eu img html 3,26 KB 7,96 KB → 5901 ms
404 GET Kuiper.gif server1.eu img html 3,26 KB 7,96 KB → 7031 ms
404 GET WindMatch.gif server1.eu img html 3,26 KB 7,96 KB→ 5190 ms
404 GET Tuinland.gif server1.eu img html 3,26 KB 7,96 KB → 6741 ms
404 GET Wezenberg.gif server1.eu img html 3,26 KB 7,96 KB → 4910 ms
404 GET Morgenster.gif server1.eu img html 3,26 KB 7,96 KB → 6571 ms
404 GET Harrie-boerhof.gif server1.eu img html 3,26 KB 7,96 KB → 4820 ms
404 GET Lococensus.gif server1.eu img html 3,26 KB 7,96 KB → 4980 ms
200 GET bootstrap.css server1.eu stylesheet css 26,13 KB 150,67 KB → 40 ms
200 GET system.css server1.eu stylesheet css 1,16 KB 894 B → 40 ms
200 GET template.css server1.eu stylesheet css 14,95 KB 70,55 KB → 40 ms
200 GET font-awesome.min.css server1.eu stylesheet css 7,90 KB 30,27 KB → 50 ms
200 GET corporate.css server1.eu stylesheet css 1,02 KB 752 B → 50 ms
200 GET jquery.min.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 37,40 KB 94,89 KB → 60 ms
200 GET jquery-noconflict.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 328 B 21 B → 70 ms
200 GET jquery-migrate.min.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 4,42 KB 9,82 KB → 70 ms
200 GET caption.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 800 B 491 B → 70 ms
200 GET bootstrap.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 17,01 KB 67,34 KB → 70 ms
200 GET jquery.tap.min.js server1.eu script js 1,17 KB 1,84 KB → 70 ms
200 GET script.js server1.eu script js 2,66 KB 6,26 KB → 70 ms
200 GET menu.js server1.eu script js 4,96 KB 16,48 KB → 70 ms
200 GET script.js server1.eu script js 1,50 KB 2,82 KB → 70 ms
200 GET nav-collapse.js server1.eu script js 1,81 KB 4,53 KB → 70 ms
404 GET JHoogeveen.gif server1.eu img html 3,26 KB 7,96 KB → 7141 ms
404 GET DeDeur.gif server1.eu img html 3,26 KB 7,96 KB → 6401 ms
404 GET Runhaar.gif server1.eu img html 3,26 KB 7,96 KB → 6861 ms
404 GET Schunselaar-schildersbedrijf.gif server1.eu img html 3,26 KB 7,96 KB → 7421 ms
404 GET Capelle.gif server1.eu img html 3,26 KB 7,96 KB → 7171 ms
404 GET Distantlake.gif server1.eu img html 3,26 KB 7,96 KB → 7251 ms
404 GET Eikenaar.gif server1.eu img html 3,26 KB 7,96 KB → 7191 ms
404 GET FFWD.gif server1.eu img html 3,26 KB 7,96 KB → 7141 ms
404 GET Veltec.gif server1.eu img html 3,26 KB 7,96 KB → 7551 ms
404 GET Heutink.gif server1.eu img html 3,26 KB 7,96 KB → 7051 ms
404 GET Lindeboom.gif server1.eu img html 3,26 KB 7,96 KB → 7311 ms
404 GET aataxi.gif server1.eu img html 3,26 KB 7,96 KB → 7561 ms
404 GET Aewind.gif server1.eu img html 3,26 KB 7,96 KB → 7631 ms
404 GET Praatmaatgroep.gif server1.eu img html 3,26 KB 7,96 KB → 7591 ms
200 GET system.css server1.eu stylesheet css 845 B 1,41 KB → 10 ms
200 GET logo.gif server1.eu img gif 6,17 KB 5,88 KB → 20 ms
200 GET reclame-en-communicatie.gif server1.eu img gif 9,54 KB 9,25 KB → 20 ms
200 GET opensans-regular-webfont.woff server1.eu font font-woff 24,45 KB 24,15 KB → 40 ms
200 GET fontawesome-webfont.woff2?v=4.7.0 server1.eu font octet-stream 75,66 KB 75,35 KB → 60 ms
200 GET js?id=UA-41464374-1 www.googletagmanager.com script js 28,01 KB 76,92 KB → 50 ms
200 GET analytics.js www.google-analytics.com script js 16,29 KB 38,76 KB → 20 ms
200 GET collect?v=1&_v=j69&a=1138059620&t=pageview&_s=1&dl=https://server1.eu/portfolio-2&ul=nl&de=UTF-8&dt=Portfolio-2&sd=24-bit&sr=1600x1200&vp=1583x1125&je=0&fl=31.0 r0&_u=AACAAUAB~&jid=442053766&gjid=162768711&cid=1071791154.1525078778&tid=UA-41464374-1&_gid=1927096468.1537349155&_r=1>m=u9c&z=1503882568
www.google-analytics.com img gif 444 B 35 B
200 GET portfolio-2 server1.eu document html 4,22 KB 10,83 KB → 230 ms
200 GET bootstrap.css server1.eu stylesheet css 26,18 KB 150,67 KB → 46 ms
200 GET system.css server1.eu stylesheet css 759 B 894 B → 107 ms
200 GET template.css server1.eu stylesheet css 15,01 KB 70,55 KB → 119 ms
200 GET font-awesome.min.css server1.eu stylesheet css 7,95 KB 30,27 KB → 111 ms
200 GET corporate.css server1.eu stylesheet css 592 B 752 B → 112 ms
200 GET jquery.min.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 37,46 KB 94,89 KB → 138 ms
200 GET jquery-noconflict.js?6d1b3850bca834b403c58682b4579 server1.eu script js 393 B 21 B → 51 ms
200 GET jquery-migrate.min.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 4,48 KB 9,82 KB → 72 ms
200 GET caption.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 688 B 491 B → 72 ms
200 GET bootstrap.js?48b6d1b3850bca834b403c58682b4579 server1.eu script js 17,07 KB 67,34 KB → 93 ms
200 GET jquery.tap.min.js server1.eu script js 1,23 1,84 KB → 86 ms
200 GET script.js server1.eu script js 2,72 KB 6,26 KB → 150 ms
200 GET menu.js server1.eu script js 5,02 KB 16,48 KB → 141 ms
200 GET script.js server1.eu script js 1,56 KB 2,82 KB → 142 ms
200 GET nav-apse.js server1.eu script js 1,87 KB 4,53 KB → 144 ms
200 GET custom-server1.css server1.eu stylesheet css 4,15 KB 16,65 KB → 146 ms
404 GET schipper2.gif server1.eu img html 327 B 162 B → 157 ms
404 GET Kuiper.gif server1.eu img html 327 B 162 B → 158 ms
404 GET WindMatch.gif server1.eu img html 327 B 162 B → 149 ms
404 GET Tuinland.gif server1.eu img html 327 B 162 B → 151 ms
404 GET Wezenberg.gif server1.eu img html 327 B 162 B → 152 ms
404 GET Morgenster.gif server1.eu img html 327 B 162 B → 150 ms
404 GET Harrie-boerhof.gif server1.eu img html 327 B 162 B → 152 ms
404 GET Lococensus.gif server1.eu img html 327 B 162 B → 152 ms
404 GET JHoogeveen.gif server1.eu img html 327 B 162 B → 151 ms
404 GET DeDeur.gif server1.eu img html 327 B 162 B → 154 ms
404 GET Runhaar.gif server1.eu img html 327 B 162 B → 154 ms
404 GET Schunselaar-schildersbedrijf.gif server1.eu img html 327 B 162 B → 154 ms
404 GET Capelle.gif server1.eu img html 327 B 162 B → 157 ms
404 GET Eikenaar.gif server1.eu img html 327 162 B → 158 ms
404 GET FFWD.gif server1.eu img html 327 B 162 B → 161 ms
404 GET Veltec.gif server1.eu img html 327 B 162 B → 166 ms
404 GET Heutink.gif server1.eu img html 327 B 162 B → 166 ms
404 GET Lindeboom.gif server1.eu img html 327 B 162 B → 166 ms
404 GET Distantlake.gif server1.eu img html 327 B 162 B → 158 ms
404 GET ataxi.gif uyk.eu img html 327 B 162 B → 160 ms
404 GET Aewind.gif server1.eu img html 327 B 162 → 161 ms
404 GET Praatmaatgroep.gif server1.eu img html 327 B 162 B → 163 ms
200 GET system.css server1.eu stylesheet css 903 B 1,41 KB → 12 ms
200 GET logo.gif server1.eu img gif 6,20 KB 5,88 KB → 14 ms
404 GET schipper2.gif server1.eu img html 327 B 162 B → 13 ms
404 GET Kuiper.gif server1.eu img html 327 B 162 B → 15 ms
404 GET WindMatch.gif server1.eu img html 327 B 162 B → 16 ms
404 GET Tuinland.gif server1.eu img html 327 B 162 B → 18 ms
404 GET Wezenberg.gif server1.eu img html 327 B 162 B → 20 ms
404 GET Morgenster.gif server1.eu img html 327 B 162 B → 23 ms
404 GET Harrie-boerhof.gif server1.eu img html 327 B 162 B → 25 ms
404 GET Lococensus.gif server1.eu img html 327 B 162 B → 26 ms
404 GET JHoogeveen.gif server1.eu img html 327 B 162 B → 29 ms
404 GET DeDeur.gif server1.eu img html 327 B 162 B → 30 ms
404 GET Runhaar.gif server1.eu img html 327 B 162 B → 33 ms
404 GET Schunselaar-schildersbedrijf.gif server1.eu img html 327 B 162 B → 35 ms
404 GET Capelle.gif server1.eu img html 327 B 162 B → 37 ms
404 GET Distantlake.gif server1.eu img html 327 B 162 B → 38 ms
404 GET Eikenaar.gif server1.eu img html 327 B 162 B → 40 ms
404 GET FFWD.gif server1.eu img html 327 B 162 B → 42 ms
404 GET Veltec.gif server1.eu img html 327 B 162 B → 45 ms
404 GET Heutink.gif server1.eu img html 327 B 162 B → 46 ms
404 GET Lindeboom.gif server1.eu img html 327 B 162 B → 49 ms
404 GET aataxi.gif server1.eu img html 327 B 162 B → 160 ms
404 GET Aewind.gif server1.eu img html 327 B 162 B → 10 ms
404 GET Praatmaatgroep.gif server1.eu img html 327 B 162 B → 13 ms
200 GET reclame-en-communicatie.gif server1.eu img gif 9,57 KB 9,25 KB → 18 ms
200 GET opensans-regular-webfont.woff server1.eu font octet-stream 24,44 24,15 KB → 43 ms
200 GET fontawesome-webfont.woff2?v=4.7.0 server1.eu font octet-stream 75,64 KB 75,35 KB → 53 ms
200 GET js?id=UA-41464374-1 www.googletagmanager.com script js 28,01 KB 76,92 KB → 179 ms
200 GET analytics.js www.google-analytics.com script js 16,29 KB 38,76 KB → 15 ms
200 GET collect?v=1&_v=j69&a=1196607213&t=pageview&_s=1&dl=https://server1.eu/portfolio-2&ul=nl&de=UTF-8&dt=Portfolio-2&sd=24-bit&sr=1600x1200&vp=1583x1125&je=0&fl=31.0 r0&_u=AACAAUAB~&jid=593009893&gjid=1416231654&cid=1071791154.1525078778&tid=UA-41464374-1&_gid=1927096468.1537349155&_r=1>m=u9c&z=1966144014
www.google-analytics.com img gif 444 B 35 B
最佳答案
这个问题有很多东西,甚至不清楚问的是什么——所有那些非服务器日志 404 错误对大多数读者来说意义不大,当然,我从来没有听说过 IPv6 的存在有任何对图像请求的某种影响突然返回 404 错误。
您已经提供了 find /etc/nginx/{conf.d,sites-enabled}
和 find /etc/nginx/{conf.d,sites-enabled} | xargs fgrep listen
,而且没有任何不寻常之处——似乎每个非 IPv4 listen
伴随着 IPv6 listen
. http://nginx.org/r/listen .
下一步,恕我直言,将直接使用 curl
重现错误单独使用,包括使用 -v
的某种组合, -4
和 -6
标志以查看发生了什么。绝对确保您是从同一台客户端主机上执行此操作,在那里您实际遇到了您尝试更正的错误;这整个问题也可能源于客户端的某些问题。curl
的另一个有用功能如果您认为您的问题与 DNS 相关,将使用域映射。如果您使用 -v
,您已经可以看到请求将转到哪个 IP 地址。选项与 curl
(这可以很容易地揭示陈旧的 DNS,除非它只是在您的浏览器中陈旧);下一步可能是用 --resolve
覆盖 IP 地址。选项,例如,--resolve test.vuyk.eu:443:2a03:b0c0:0:1010::190:6001
或一些这样的。
最后,如果您仍然只通过 IPv6 ( -6
) 而不是通过 IPv4 ( -4
) 遇到延迟和故障,那么问题可能与客户端上的 IPv6 连接有关;具体来说,如果您的连接通过隧道或 6rd,那么 MTU 发现可能会沿路径中断;在 Linux 上,你可以尝试使用 tracepath
要进行故障排除,它会打印 pmtu
沿路径的值。
FWIIW,我已经尝试通过 TMo US 通过 IPv6 native 连接访问您的站点,IPv6 的 MTU 为 1500(他们实际上通过 IPv6 隧道传输 IPv4,因此,据我了解,T-Mo US 上的 IPv4 MTU 为 1472),而且我看不到任何明显的问题(而且,据我所知,您目前确实为 test.vuyk.eu 发布了 IPv6 记录)。也许整个问题是由于您的设置中客户端的 DNS 缓存陈旧?对于您在客户端中看到的所有 404 错误,您在服务器日志中看到了什么?!
关于nginx - 将 IPv4 与 IPv6 结合使用时,为什么我的服务器速度慢且 SSL 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52362123/
SQLite、Content provider 和 Shared Preference 之间的所有已知区别。 但我想知道什么时候需要根据情况使用 SQLite 或 Content Provider 或
警告:我正在使用一个我无法完全控制的后端,所以我正在努力解决 Backbone 中的一些注意事项,这些注意事项可能在其他地方更好地解决......不幸的是,我别无选择,只能在这里处理它们! 所以,我的
我一整天都在挣扎。我的预输入搜索表达式与远程 json 数据完美配合。但是当我尝试使用相同的 json 数据作为预取数据时,建议为空。点击第一个标志后,我收到预定义消息“无法找到任何内容...”,结果
我正在制作一个模拟 NHL 选秀彩票的程序,其中屏幕右侧应该有一个 JTextField,并且在左侧绘制弹跳的选秀球。我创建了一个名为 Ball 的类,它实现了 Runnable,并在我的主 Draf
这个问题已经有答案了: How can I calculate a time span in Java and format the output? (18 个回答) 已关闭 9 年前。 这是我的代码
我有一个 ASP.NET Web API 应用程序在我的本地 IIS 实例上运行。 Web 应用程序配置有 CORS。我调用的 Web API 方法类似于: [POST("/API/{foo}/{ba
我将用户输入的时间和日期作为: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); TimePicker tp = (TimePic
放宽“邻居”的标准是否足够,或者是否有其他标准行动可以采取? 最佳答案 如果所有相邻解决方案都是 Tabu,则听起来您的 Tabu 列表的大小太长或您的释放策略太严格。一个好的 Tabu 列表长度是
我正在阅读来自 cppreference 的代码示例: #include #include #include #include template void print_queue(T& q)
我快疯了,我试图理解工具提示的行为,但没有成功。 1. 第一个问题是当我尝试通过插件(按钮 1)在点击事件中使用它时 -> 如果您转到 Fiddle,您会在“内容”内看到该函数' 每次点击都会调用该属
我在功能组件中有以下代码: const [ folder, setFolder ] = useState([]); const folderData = useContext(FolderContex
我在使用预签名网址和 AFNetworking 3.0 从 S3 获取图像时遇到问题。我可以使用 NSMutableURLRequest 和 NSURLSession 获取图像,但是当我使用 AFHT
我正在使用 Oracle ojdbc 12 和 Java 8 处理 Oracle UCP 管理器的问题。当 UCP 池启动失败时,我希望关闭它创建的连接。 当池初始化期间遇到 ORA-02391:超过
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve
引用这个plunker: https://plnkr.co/edit/GWsbdDWVvBYNMqyxzlLY?p=preview 我在 styles.css 文件和 src/app.ts 文件中指定
为什么我的条形这么细?我尝试将宽度设置为 1,它们变得非常厚。我不知道还能尝试什么。默认厚度为 0.8,这是应该的样子吗? import matplotlib.pyplot as plt import
当我编写时,查询按预期执行: SELECT id, day2.count - day1.count AS diff FROM day1 NATURAL JOIN day2; 但我真正想要的是右连接。当
我有以下时间数据: 0 08/01/16 13:07:46,335437 1 18/02/16 08:40:40,565575 2 14/01/16 22:2
一些背景知识 -我的 NodeJS 服务器在端口 3001 上运行,我的 React 应用程序在端口 3000 上运行。我在 React 应用程序 package.json 中设置了一个代理来代理对端
我面临着一个愚蠢的问题。我试图在我的 Angular 应用程序中延迟加载我的图像,我已经尝试过这个2: 但是他们都设置了 src attr 而不是 data-src,我在这里遗漏了什么吗?保留 d
我是一名优秀的程序员,十分优秀!