There is no problem not worth solving, and no technology not worth learning!

In a container built based on nginx:alpine, after editing the configuration of nginx, reload

编辑 Nginx 的配置后,需要重新加载。执行如下命令

1. In a container built based on nginx:alpine, a URL response 404 needs to edit the configuration of nginx to make it respond to 200. as shown in Figure 1

在基于 nginx:alpine 构建的容器中,一个网址响应 404,需要编辑 Nginx 的配置,以使其响应 200
Figure 1

2. After editing the configuration of nginx, you need to reload. Execute the following commands. as shown in Figure 2

编辑 Nginx 的配置后,需要重新加载。执行如下命令
Figure 2

	cd /usr/local/openresty/bin

	./openresty -s reload


3. After reloading, the URL response is 200, which is in line with expectations. as shown in Figure 3

重新加载后,网址响应 200,符合预期
Figure 3

Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.