我正在数字海洋上部署我的react应用程序。我遵循了这个教程,一切都很顺利:https://www.youtube.com/watch?v=lN0oiYqenpA&ab_channel=RyanMichaelHirst
现在,每当我去我的ip或域名,我发现以下错误: 404找不到。
每当我运行nginx的日志时,它都会显示端口80正在被使用。因此,我运行以下代码:
sudo netstat -pan | grep ":80“
tcp 0 0 159.203.87.191:80 52.84.150.39:31164 SYN_RECV -
tcp 0 0 159.203.87.191:80 52.84.150.39:38386 SYN_RECV -我知道这是一个内部错误,但我似乎找不到其中的错误。我有两个东西在同一个端口上运行,所有东西都崩溃了。它昨天开始工作了,我得到了nginx页面的欢迎。
这是我的服务器配置。(Nginx)
upstream my_nodejs_upstream {
# (this is the server's ip address)
server x.x.x.x.;
keepalive 64;
}
server {
listen 80;
listen [::]:80 ipv6only=on;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name mmt-university;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://universitymmt.com/;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_read_timeout 240s;
}
# pass PHP scripts to FastCGI server
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}发布于 2020-10-12 19:58:13
连接处于SYN_RECV状态,因为内核收到了一个处于侦听模式的端口的SYN包,但另一端没有用确认应答。
通过在服务器上运行捕获,检查服务器是否收到ACK。捕获是在客户端还是在服务器上进行的?
此外,大量的SYN-RECV表示可能对主机实施了SYN Flood攻击。有关更多信息,请访问:https://www.cloudflare.com/learning/ddos/syn-flood-ddos-attack/
https://stackoverflow.com/questions/64317133
复制相似问题