首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >我在 配置 HTTPS 反向代理 老出这样的错误 是啥原因呢?

我在 配置 HTTPS 反向代理 老出这样的错误 是啥原因呢?

提问于 2018-02-18 22:27:01
回答 1关注 0查看 598

我在 配置 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;

}

}

程序开发端就是这个结果

大图

这个问题困扰我很多天了。。配置了很多次 都一样的结果

如果有简便的方式请告知,问题出在哪里了 ,麻烦告诉下。。服务器方面学的少,还在慢慢学 谢谢

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档