Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:19:13+00:00 2026-06-15T17:19:13+00:00

I am coming from Microsoft world so please bear with me on this. I

  • 0

I am coming from Microsoft world so please bear with me on this. I was told I could install node.js and use that as a web server instead of IIS. This is a very small business application. In IIS I can create virtual directory and point to the location of the web page and everything works just fine. Based on very little I read, I have few questions;

  1. Is it possible to run node js as a windows service or any other form so that it runs for ever? I did find the forever package that I think I can use.
  2. In IIS, I can create virtual directory set the port and thats it, I have myself a website.

I do not see any examples where I can use a directory where I have a web page, written in java script and point it to run as a web site. All the examples have some thing like server.js and that runs and routes the call. what is the other way to host web sites and use node.js to simple run as a fast web server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:19:14+00:00Added an answer on June 15, 2026 at 5:19 pm

    I was told I could install node.js and use that as a web server instead of IIS.

    This is true, but as you already found out then you are in charge of providing for things that IIS was already doing for you (e.g. automatically restart on reboot, or on crashes, hosting multiple sites by creating virtual folders, et cetera.)

    You can indeed get all of these things worked out in Node.js and there are several libraries that help on each of these areas. It’s not too hard but you’ll need to do a bit of researching.

    You can also run Node.js behind IIS. Take a look at iisnode http://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html

    Is it possible to run node js as a windows service or any other form so
    that it runs for ever?

    The library Forever takes care of restarting the site when it crashes…but I don’t know if you can run it as a Windows Service. I haven’t tried that.

    In IIS, I can create virtual directory set the port and thats it,
    I have myself a website.

    I assume you are talking about a site that serves static HTML files, right? If that’s the case that’s very easy to support in Node.js either writing your own web server or using Express.js to serve static files.

    I do not see any examples where I can use a directory where I have a web page,
    written in java script and point it to run as a web site. All the examples
    have some thing like server.js and that runs and routes the call.

    Here is an extremely simple example to serve plain HTML files in Node.js https://gist.github.com/2573391 Don’t use this in production, though. It’s just an example and it does not have any kind of error handling or security.

    what is the other way to host web sites and use node.js to simple run
    as a fast web server.

    As others have said, you should look into Express.js http://expressjs.com/ It provides some of the infrastructure that you are very likely going to need when building traditional web sites.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please tell me where these extra characters are coming from? This is
I'm coming from the world of c#. in C# i am able to use
Coming from a non-web background I'm struggling with cookie uniqueness. When I read and
Coming from a .NET background I'm use to reusing string variables for storage, so
Coming from a PHP background, I'm used to writing small functions that return a
Coming from a Relational world things are obviously very different with the Azure Table
Coming from C++ it is hard grained into my mind that everytime I call
I'm coming from the LAMP world, where the cache everything mentality is prevalent. Everything
I am relatively new to Haskell, coming from F# (a Microsoft language). I have
I wonder where this error is coming from. Here is the code, and below

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.