[WordPress] 外掛分享: localhost2host.docker.internal

首頁外掛目錄 › localhost2host.docker.internal
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
633 天前
最後更新
問題解決
WordPress 6.3+ PHP 8.1+ v0.4.0 上架:2024-06-23

內容簡介

<html>
<p>這個外掛可以避免在 WordPress 使用 Docker 環境(如 wp-env)時發生迴圈請求錯誤。</p>
<ul>
<li>將對 localhost 的請求替換為 host.docker.internal,並且若是 https,則轉換為 http 並關閉 sslverify。</li>
<li>不需要設定,只需啟用此外掛。</li>
</ul>
</html>
<html>
<h3>問與答:</h3>
<ul>
<li>
<h4>這個外掛的作用是什麼?</h4>
<p>避免在 WordPress 使用 Docker 環境時發生迴圈請求錯誤。</p>
</li>
<li>
<h4>如何處理對 localhost 的請求?</h4>
<p>將其替換為 host.docker.internal。</p>
</li>
<li>
<h4>若原本是 https 請求會發生什麼變化?</h4>
<p>會被更改為 http 並關閉 sslverify。</p>
</li>
<li>
<h4>這個外掛是否需要進行設定?</h4>
<p>不需要,僅需啟用即可。</p>
</li>
</ul>
</html>

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「localhost2host.docker.internal」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Prevents loopback request errors in WordPress environments using Docker such as wp-env.
Replace requests to localhost with host.docker.internal, and if https, change to http and turn off sslverify.
There are no settings. Just enable this plugin.

文章
Filter
Mastodon