Skip to content

Nuface Blog

隨意隨手記 Casual Notes

Menu
  • Home
  • About
  • Services
  • Blog
  • Contact
  • Privacy Policy
  • Login/Logout
Menu

Category: Docker

About Docker Command

Fixing WordPress REST API Error: cURL Error 28 in Docker Environments

Posted on 2025-11-022025-11-04 by Rico

When running WordPress, you might encounter this warning in your Site Health Check page: REST API ErrorThe REST API is one way WordPress and other applications communicate with the server. Error: (http_request_failed) cURL error 28: Connection timed out after 10001 milliseconds This message indicates that your WordPress instance failed to communicate with itself through the…

Read more

解決 WordPress REST API 錯誤:cURL error 28 的實戰過程

Posted on 2025-11-022025-11-04 by Rico

在使用 WordPress 時,如果在「網站健康檢查」頁面看到以下訊息: REST API 發生錯誤REST API 是 WordPress 及其他應用程式與伺服器進行通訊的一種方式。以區塊編輯器畫面為例,它便是依賴 REST API 來顯示與儲存內容。測試 REST API 時發生錯誤:REST API 回應: (http_request_failed) cURL error 28: Connection timed out after 10001 milliseconds 代表你的 WordPress 無法透過內部網路與自己通訊。這種錯誤看似奇怪,實際上非常常見,尤其當你的網站部署在 Docker 或反向代理環境 中。 🔍 問題現象 WordPress 會在檢查 REST API 時,嘗試透過 HTTP 請求連到自己的網址(例如 https://www.nuface.tw/wp-json/)。但如果容器內的 DNS 無法解析這個網域,就會出現逾時錯誤 cURL error 28。 簡單來說,就是「WordPress 呼叫自己時,找不到自己」。 🧠 問題原因分析 在 Docker…

Read more

Integrating Apache with a PHP-FPM Container

Posted on 2025-10-312025-10-31 by Rico

🔰 Introduction In many containerized environments, it’s common to run Apache in one container and PHP-FPM in another.By default, an Apache container that serves only static files (HTML, CSS, JS) won’t execute PHP scripts because it lacks the PHP runtime. If you’ve started a separate PHP-FPM container, you can configure Apache to forward all .php…

Read more

Apache 整合 PHP-FPM 容器

Posted on 2025-10-312025-10-31 by Rico

🔰 前言 在容器化環境中,常見的架構是將 Apache 與 PHP-FPM 分開成兩個容器執行。Apache 容器負責靜態內容(HTML、CSS、JS)與 HTTP 請求處理,而 PHP-FPM 容器則負責 PHP 程式的執行。 若你的 Apache 容器目前僅能顯示靜態頁面(無法執行 PHP 程式),可以透過設定 Apache 的網站組態檔,將 .php 檔案交由 PHP-FPM 容器 處理。本文將說明整合步驟與注意事項。 🧩 環境假設 假設目前有以下環境: ⚙️ 步驟一:確認網路連線 首先確認 Apache 與 PHP-FPM 是否在同一個網路中: 如果未在同一網段,可手動加入: ⚙️ 步驟二:啟用 Apache 代理模組 在 Apache 容器中啟用以下模組: 啟用後重新啟動 Apache: ⚙️ 步驟三:修改 Apache 網站設定檔 編輯網站設定檔(例如 /etc/apache2/sites-available/000-default.conf),在 <VirtualHost> 區塊內加入以下設定: 設定說明:…

Read more

Docker Network Create

Posted on 2025-10-302025-10-30 by Rico

When creating a Docker network, you can specify a custom subnet and gateway using the docker network create command with the –subnet and –gateway parameters. 🧩 Example Command 🔍 Explanation Parameter Description –driver=bridge Specifies the network driver. The default is bridge. While optional, it’s good practice to include it explicitly. –subnet=172.24.0.0/16 Defines the IP subnet…

Read more

Docker 建立特定網段

Posted on 2025-10-302025-10-30 by Rico

建立Docker Network 時指定網段及Gateway 的指令。建立一個自訂的 Docker 網路,指定 subnet 與 gateway,可以用 docker network create 搭配 –subnet 與 –gateway 參數。 範例如下: 說明: –driver=bridge → 預設就是 bridge,可以省略,但建議寫明。–subnet=172.24.0.0/16 → 指定網段。–gateway=172.24.0.1 → 指定網路閘道。mail-network → 網路名稱。 建立好之後可以確認: 會看到類似:

Read more

Posts pagination

  • Previous
  • 1
  • 2
  • 3
  • 4

Recent Posts

  • Enterprise AI Platform – AI Security Architecture: Protecting More Than Just the Model
  • 企業 AI 平台-AI Security Architecture:當企業導入 AI,真正需要保護的不只是模型
  • 企業 AI 不只是 LLM:打造高品質 RAG 知識庫的架構與最佳實務
  • Enterprise AI Beyond a Single Agent: Designing an Agent-to-Agent (A2A) Architecture
  • 當企業 AI 不再只有一個 Agent:談 A2A(Agent to Agent)架構

Recent Comments

  1. Building a Complete Enterprise-Grade Mail System (Overview) - Nuface Blog on High Availability Architecture, Failover, GeoDNS, Monitoring, and Email Abuse Automation (SOAR)
  2. Building a Complete Enterprise-Grade Mail System (Overview) - Nuface Blog on MariaDB + PostfixAdmin: The Core of Virtual Domain & Mailbox Management
  3. Building a Complete Enterprise-Grade Mail System (Overview) - Nuface Blog on Daily Operations, Monitoring, and Performance Tuning for an Enterprise Mail System
  4. Building a Complete Enterprise-Grade Mail System (Overview) - Nuface Blog on Final Chapter: Complete Troubleshooting Guide & Frequently Asked Questions (FAQ)
  5. Building a Complete Enterprise-Grade Mail System (Overview) - Nuface Blog on Network Architecture, DNS Configuration, TLS Design, and Postfix/Dovecot SNI Explained

Archives

  • July 2026
  • June 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025

Categories

  • AI
  • Apache
  • CUDA
  • Cybersecurity
  • Database
  • DNS
  • Docker
  • Fail2Ban
  • FileSystem
  • Firewall
  • Lean
  • Linux
  • LLM
  • Mail
  • MIS
  • N8N
  • OpenLdap
  • OPNsense
  • PHP
  • Python
  • QoS
  • Samba
  • Switch
  • Virtualization
  • VPN
  • VSM
  • WordPress
© 2026 Nuface Blog | Powered by Superbs Personal Blog theme