@jenkler My website can be accessed through IP, there will not be the error as above, access to the domain name will be wrong.
@jenkler It looks like socket.io was wrong
Nice, problem solved then
Likely config.url is not set properly.
@julian This config.url is not in the config.json? In addition, I checked the site with the console of the Chrome browser and found a lot of socket.io errors (403 errors)
In addition, how to configure socket.io in the config.json file?
@jenkler My problem hasn't been solved yet.
Your config.json needs to have your domain in the url:
@yariplus I've changed what you're saying, but there are a lot of socket.io errors found in the console.
Did you restart NodeBB after changing config.json?
@julian Now through the domain name access is not wrong, but through the IP access will appear before the error, how should this deal with?
@9652301 In your reverse proxy's config, direct IP address access should be prohibited. Instead, catch those requests and redirect them to the proper hostname.
@julian I've solved the problem. Thank you very much!