您好,登錄后才能下訂單哦!
1:升級(jí)系統(tǒng):
sudo yum update
2:安裝 EPEL repository:
sudo yum install epel-release
3:安裝 Caddy:
sudo yum install caddy
4:文件
/usr/bin/caddy -conf /etc/caddy/caddy.conf
www.robinplus.com { # 同時(shí)啟用 http 和 https 不會(huì)自動(dòng)轉(zhuǎn)跳
gzip
proxy / http://127.0.0.1:8080 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
}
執(zhí)行
/usr/bin/caddy -conf /etc/caddy/caddy.conf
systemctl enable caddy
systemctl start caddy
systemctl stop caddy
systemctl status caddy
wordpress 按照自己的規(guī)劃修改路徑,修改docker映射端口:8080(host):80 (container)
參考地址:https://blog.51cto.com/michaelkang/2362202
vi docker-compose.yml
version: '3.3'
......
ports:
- "8080:80"
...........
https://blog.51cto.com/michaelkang/1922968
https://diamondfsd.com/caddy-instand-nginx-support-https/
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。