親子日記APP
|
免費申請
|
登入
mini box 迷你盒子
這裡是工程師的筆記資料.
部落格
相簿
APP日記
書籤
標籤:
nginx
的相關文章
瀏覽方式:
摘要列表
|
標題列表
|
全站 《nginx》 相關
let's encrypt / nginx 問題
2022
11
01
14:20
新申請的 lets' encrypt 憑證,在 nginx 出現錯誤:
# nginx
nginx: [emerg] SSL_CTX_use_PrivateKey("/etc/letsencrypt/live/nidbox.cc/privkey.pem") failed
(SSL: error:0B080074:x509 certificate routines:X509_check_private_key:k...
繼續閱讀»
分類:
web開發
/
留言(0)
Cloudflare 取得用戶真實 IP 的方式
2022
09
25
12:20
Apache httpd 記錄用戶真實 IP LogFormat "%h %l %u %t \"%r\" %>s %b" common 改為 LogFormat "%h %l %u %t \"%r\" %>s %b %{X-Forwarded-For}i" common
nginx 記錄用戶真實 IP 方法一: 使用 x_forwarded_for (remote_addr 仍會是 Cloudflare 的 IP) nginx.conf log_format ...
繼續閱讀»
分類:
web開發
/
留言(0)
nginx/Apache: 502 Bad Gateway
2022
01
06
08:11
502 Bad Gateway 的狀況很多種 通常會是後端 (upstream) 的 server 異常造成 這裡記錄個人遇到的問題、解法 我的架構大概 前端 nginx 常常出現 502 Bad Gateway 訊息時, nginx 所記錄的內容: 2021/12/28 13:23:15 [error] 1598#1598: *22104 upstream prematurely closed connection while reading response header from upstream, client: 150.11.xx.xx, server: test.abc.cc, request: "GET /s...
繼續閱讀»
分類:
web開發
/
留言(0)