I managed to deploy noddjs application using basic app.listen(...), which is not secured.
I've been trying to deploy the app on https.
Whatever I do, it throws Proxy Error sometimes, and 302 Found other times.
My .htaccess file looks like this:
RewriteEngine onRewriteRule ^(.*)$ https://localhost:8080/$1 [R,L]
My js file looks like this