在服务器上可以通过ping和wget连接网页 但是在自己的window浏览器中却不能访问
求大神解答! 相关信息如下
域名解析正常
服务器的相关端口有打开
nginx的相关信息如下
nginx运行时 443和80端口也有监听
nginx的配置文件nginx.conf内容如下:
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 80;
server_name 47.98.49.83;
charset utf-8,gbk;
location / {
uwsgi_pass 47.98.49.83:8000;
include /etc/nginx/uwsgi_params;
}
location /static {
alias /root/project/faceHealth/collected_static/;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name facehealthcloud.club www.facehealthcloud.club;
ssl on;
charset utf-8,gbk;
root html;
index index.html index.htm;
ssl_certificate cert/cert.pem;
ssl_certificate_key cert/cert.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
uwsgi_pass 47.98.49.83:8000;
include /etc/nginx/uwsgi_params;
}
location /static {
alias /root/project/faceHealth/collected_static/;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。