首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >nginx 反向代理https设置成功,但是访问页面出现502 bad gate way?

nginx 反向代理https设置成功,但是访问页面出现502 bad gate way?

提问于 2018-05-17 19:31:02
回答 2关注 0查看 5.8K

# root html;

# index index.html index.htm;

这两行开放了是可以访问的

配置如下:

# HTTPS server

#

server {

listen 443 ssl;

server_name www.liujianintellicreate.cn;

ssl on;

ssl_certificate 1_liujianintellicreate.cn_bundle.crt;

ssl_certificate_key 2_liujianintellicreate.cn.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;

proxy_http_version 1.1;

fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

location / {

proxy_buffer_size 64k;

proxy_buffers 32 32k;

proxy_busy_buffers_size 128k;

proxy_set_header Host $host:&server_port;

proxy_pass http://127.0.0.1:8765;

# root html;

# index index.html index.htm;

}

}

回答

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

相似问题

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