Sebaik sahaja anda mengakses nama domain www, anda akan dialihkan ke 域名访问提示
域名已经解析www了,下面是nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
}
sites-enabled
server {
listen 80;
server_name www.youzisq.com youzisq.com;
location / {
proxy_pass http://127.0.0.1:5050;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Alasan paling mungkin untuk lompatan DNS yang dilakukan oleh pengendali ialah nama domain belum diselesaikan atau keputusan resolusi nama domain masih belum berkuat kuasa. Sila semak TTL resolusi nama domain, semak resolusi tempatan dalam talian dan cuba kosongkan cache DNS tempatan.