Https增加证书
server { listen 443 ssl http2; server_name api.visit.icbf.com.cn; ssl_certificate cert/axxx.com.cn.pem; ssl_certificate_key cert/axxx.com.cn.key; access_log /var/log/nginx/xxx.access.log; error_log /var/log/nginx/xxx.error.log warn; location / { proxy_buffering off; #开启从后端被代理服务器的响应内容缓冲 proxy_buffer_size 128k; #设置缓冲区的大小和数量 proxy_buffers 100 128k; # client_max_body_size 100m; proxy_pass http://17xx.xxx.xxx.xxx:54089; } }
Http开启目录浏览