Running NodeBB on IIS
-
Hello everyone, I have some configuration questions for anyone who can give me some light on what to do, so I went ahead and setup a forum with NodeBB, everything works and it is on a Windows PC, this server runs a whole lot of services and stuff on IIS and we are trying to make something like this:
Forum (Internal address) URL: http://10.0.1.1:4567/ (the home page for the forum)
Web address for the user (public address): http://www.companywebsite.com/Forum (redirect the user to the home page of the forum)I have no experience with this kind of stuff but trying to help our guys here on the IT area to get this thing up and running. just searching by "node.js publish on IIS" on google gives me some stuff about iisnode but actually not sure if NodeBB could work with this or not...
Some other links to information:
Installing And Running Nodejs Applications Within IIS On Windows
Getting started with iisnode: node.js on Windows
Youtube video about iisnodeAny help would be really appreciated!!
-
@SergioNG you don't need NodeBB or node.js running on IIS. All you need to do is setup IIS as a proxy server so that any requests for http://www.companywebsite.com/Forum will be redirected to http://10.0.1.1:4567
simple search on google for "setting up IIS as proxy" brought this up
http://www.iis.net/learn/extensions/configuring-application-request-routing-arr/creating-a-forward-proxy-using-application-request-routing -
@pichalite Thank you, we'll go and try this out and see if this works for us.
Which by the way when you setup the forum (./nodebb setup) the process asks you for the address for the forum... anyone knows if I would have to put http://www.companywebsite.com/Forum in there so any links on the forum send people to the public address? or this would create problems?
-
@SergioNG said:
Which by the way when you setup the forum (./nodebb setup) the process asks you for the address for the forum... anyone knows if I would have to put http://www.companywebsite.com/Forum in there so any links on the forum send people to the public address? or this would create problems?
Yes, enter the actual URL users will be using to get to the forum.
-
Hi all,
I realize this is an old topic, but given that I'm dealing with exactly the same problem, I figured it would be sensible to reply here. Essentially, I've followed the advice of @pichalite and created a simple IIS forward proxy for my NodeBB server. Unfortunately this solution does not yield the desired result, as many requests for resources are not being made to the correct directory - instead, requests are being made to the root level of the IIS Web server (e.g., GET http//website.ca/stylesheet.css?4210ebb0-9225-4237-b2ad-87d88b61756b), and not to the specified port where NodeBB is being hosted (e.g., http://website.ca:4567 or http://localhost:4567).
Any ideas? I've played around with reverse proxies and outbound rules to route all outgoing traffic from http://localhost:4567 to the same URL I've specified for the proxy rule (e.g., http//website.ca/associates-hub) to no avail... If more info or screenshots are needed, they can be provided. I've been banging my head against the wall trying to cycle through all possible solutions to this problem. Any insight would be GREATLY appreciated.
Thanks,
Cam