caddy 反代wordpress + ssl证书生成
caddy 反代wordpress + ssl证书生成
安装caddy
1:升级系统: 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 { # 同时启用 http 和 https 不会自动转跳 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} } }
验证配置文件正确性
执行 /usr/bin/caddy -conf /etc/caddy/caddy.conf
服务启动管理
systemctl enable caddy systemctl start caddy systemctl stop caddy systemctl status caddy
启动wordpress 服务
wordpress 按照自己的规划修改路径,修改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/
相关推荐
Wordpress0 2020-09-27
bluehost 2020-09-15
maccarty 2020-08-03
86520993 2020-07-28
WordPress 2020-07-04
李维山 2020-06-21
GimmeS 2020-06-14
WordPress 2020-06-10
shayuchaor 2020-06-10
liwf 2020-06-02
疯狂老司机 2020-05-26
zcl 2020-05-12
timewind 2020-05-11
86520993 2020-05-04
Lophole 2020-04-29
fraternityjava 2020-04-23
84911835 2020-04-16
maccarty 2020-04-09
WordPress 2020-04-07