Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual hosting with standalone node.js server

Is there a way to currently do virtual hosting with node.js server (i.e. host multiple domains under one IP) ?

like image 245
khoomeister Avatar asked Dec 14 '11 11:12

khoomeister


People also ask

Can I host website with node js?

Node. js is essentially your webserver that would replace Apache so the only hosting that you would find to run Nodejs is a dedicated server or a cloud instance in which you would have to install and run nodejs on.

How do I host a Node server for free?

Go to: https://github.com/geshan/nodejs-posgresql. Click on the “Deploy to Heroku” button. On the Heroku “Create New App” page give the app a name like nodejs-heroku-try or something that is available. Then click “Deploy App”

CAN node js work without Internet?

therefore no connection needed.


1 Answers

Sure, you can use bouncy or node-http-proxy specifically for that.

There's also an Express solution. Check out this example.

like image 100
alessioalex Avatar answered Oct 12 '22 01:10

alessioalex