Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Caddy reverse generation of wordpress + ssl certificate

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Caddy reverse wordpress + ssl certificate generation installation caddy1: upgrade system: sudo yum update2: install EPEL repository:sudo yum install epel-release3: install Caddy:sudo yum install caddy4: file / usr/bin/caddy-conf / etc/caddy/caddy.conf add reverse proxy configuration www.robinplus.com {# enable both http and https will not automatically redirect 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}} verify profile correctness execution / usr/bin/caddy-conf / etc/caddy/caddy.conf service startup management systemctl enable caddysystemctl start caddysystemctl stop caddysystemctl status caddy start wordpress service

Wordpress modifies the path according to its own plan, and modifies docker mapping port: 8080 (host): 80 (container)

Reference address: https://blog.51cto.com/michaelkang/2362202

Vi docker-compose.ymlversion: '3.3mm. Ports:-"8080 80". Reference documentation

Https://blog.51cto.com/michaelkang/1922968

Https://diamondfsd.com/caddy-instand-nginx-support-https/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report