我在 配置 HTTPS 反向代理 老出这样的错误 是啥原因呢?
https://85930058.lz168.xyz/ 域名访问正常
请问问题出在哪里呢?
root@172.17.0.5:~
# nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
root@172.17.0.5:~
# ^C
root@172.17.0.5:~
# nginx -s reload
nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
root@172.17.0.5:~
# nginx -s reload
nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
配置的域名是
server {
listen 443;
server_name 85930058.lz168.xyz; # 改为绑定证书的域名
# ssl 配置
ssl on;
ssl_certificate 1_85930058.lz168.xyz_bundle.crt; # 改为自己申请得到的 crt 文件的名称
ssl_certificate_key 2_85930058.lz168.xyz.key; # 改为自己申请得到的 key 文件的名称
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:8765;
}
}
程序开发端就是这个结果
大图
这个问题困扰我很多天了。。配置了很多次 都一样的结果
如果有简便的方式请告知,问题出在哪里了 ,麻烦告诉下。。服务器方面学的少,还在慢慢学 谢谢
相似问题