Home  >  Q&A  >  body text

The nginx reverse proxy is suddenly garbled in the whole site, and the IP access is normal?

Our website is in normal use today. Every time I refresh it, everything is garbled. Many customers are using it, which scares me.
Quickly restart tomcat, but it doesn’t work. I restart nginx several times (use nginx as a reverse proxy). Invalid. Adding the default encoding to the server and restarting it still has no effect. Then directly use tomcat's ip+port to access it, which is normal.
Then I shut down nginx. After searching for the problem for a while, I still couldn't find it. I was going to temporarily switch to apache as a reverse proxy. Then my colleague restarted nginx and everything was fine. Very strange.

The garbled screenshot of the page is as follows:

PHP中文网PHP中文网2713 days ago884

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:16:22

    It may be the following 2 reasons:
    1. Encoding problem in nginx reverse proxy configuration
    2. Gzip compression problem in nginx reverse proxy

    reply
    0
  • Cancelreply