I managed to do it like this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{SERVER_PORT} !^3000$ RewriteRule ^ http://%{HTTP_HOST}:3000%{REQUEST_URI} [P,QSA,L] </IfModule>
Nothing worked for me :(
Here I check if the port is not 3000, and if the protocol is not https, then I point the domain to port 3000 (you can put the port that you use with node.js), you can remove RewriteCond %{HTTPS} !=on in if you do not want to check the protocol.
I do R & D locally, but in production, I suppose that instead of nache, instead of nachex I will use nginx + node.
panosru
source share