日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Nginx >内容正文

Nginx

Nginx代理https接口

發布時間:2024/1/1 Nginx 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Nginx代理https接口 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Nginx代理https接口,附上Nginx配置文件,詳情見注釋。

server {listen 443 ssl;server_name api.xxx.com;access_log /root/logs/index.access.log main;error_log /root/logs/index.error.log;root /;index index.html index.htm index.php;ssl_certificate cert/xxx.pem; #將domain name.pem替換成您證書的文件名。ssl_certificate_key cert/xxx.key; #將domain name.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;## send request back to apache ##location / {#Proxy Settings# 接口的本地地址 反向代理proxy_pass http://localhost:50005;proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;proxy_max_temp_file_size 0;proxy_connect_timeout 90;proxy_send_timeout 90;proxy_read_timeout 90;proxy_buffer_size 4k;proxy_buffers 4 32k;proxy_busy_buffers_size 64k;proxy_temp_file_write_size 64k;}

總結

以上是生活随笔為你收集整理的Nginx代理https接口的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。