Proxy the path under NodeBB root to another one.
http://example.com is my nodebb site URL. I configured a proxy to pass http://example.com/app to my other Python server. But when clicking http://example.com/app in a post of NodeBB, then a page opens, which says the URL not found. Refreshing it again opens the real page http://example.com/app (my Python app).
I use Apache proxy server. I hope my Python app opens by the first click on the link.
How can I fix this?
Ah, that's a tricky one, since it's a non-traditional way of setting up services to work together. NodeBB considers all subfolders part of its purview, which is why ajaxify is kicking in (but returning 404 since that route doesn't exist).
There's this bit of code in
ajaxify.js, which you'll need to update on your install, to include
I modified html link on my custom home page.
- Pros: no change to NodeBB source, so that I can update NodeBB as new release comes.
- Cons: The link URL is ugly and can not be copied for quote.