w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can Host Headers resolved to a virtual host node.js like in Apache?

Yes, you can certainly implement this same behavior in node. The http module only provides a basic server instance with a request callback, but you can expand on that by checking the Host header and then routing the request to the proper application.

If you are using an server framework like express or connect, there is a vhost middleware that will provide this functionality.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.