Nginx redirection to Discourse

(Terry Tong) #1

My website is hosted by nginx. How to configure Discourse so that nginx can redirect http request to -&nbspThis website is for sale! -&nbspmywebsite Resources and Information. to Discourse?

(Sigurður Guðbrandsson) #2

You need to set up nginx as a reverse proxy and rewrite all relative links from / to /bbs

Here’s how you can do that:

Please note that this may fail in some situations so I would rather recommend that you create and use that for Discourse.

(Kane York) #3

Yeah, that’s not going to work. Both the client-side javascript and the server-side ruby code generate URLs all over the place.