after that, when I goto myPublicIP/recommender I received the rails error that the page does not exist. But I want to receive the nginx error.
The configuration worked well on my local but didn’t work well on vps.
If you want to host non-Discourse sites on the same host, you’ll need to set up a reverse proxy. Simply follow these steps to do so. In the end, you’ll have an nginx running outside of Docker to fiddle with
(Please note that Discourse and your external website should use different domains, or links from Discourse will break.)
No. (It’s not recommended. It would be possible, but not very easy or worthwhile.)
Yes, but if you don’t know that already, you might rather follow the link that @fefrei pointed to. If you put your app in a container, you would still need another Nginx (perhaps running in a Docker container) to reverse proxy to Discourse and your app.
We have installed discourse with this process.
Doing the following will solve my problem or not?
does it may cause error?
should we delete the previous nginx or not?
Are these steps SAFE?(Very Important)