Today I've installed a NGINX server for a first time. It works very well but I'm facing a small problem with the configuration of server to work together with node.js.
I want to have the following logic in the nginx.conf.
- Directory listing to be disabled
- All static files(images, js, less and css) to be served from the NGINX
- All requests like http://hostname/remote_data/??/??/?????? to be routed to the node.js server
- All requests like http://hostname/??/??/?????? to be routed to the index.html, so not to reach the node.js
question marks are optional parameters :) It is possible to have from 0 to 7 parameters.
I apologize if this setup scenario is very easy to be done, but I'm fighting with it almost 3 hours and I'm stuck. Step 1 and 2 are ready - 10x to google.
Regards Dan