Link Details

Link 911509 thumbnail
User 227258 avatar

By archeon
Published: Jan 23 2013 / 15:37

One of the great things about Node.js is that it has a built in HTTP server. This means you don't need Apache or nginx. This means serving a static site can be done in few lines of code. This article goes into how this can be achieved.
  • 11
  • 0
  • 849
  • 734
User 161039 avatar

mheath replied ago:

1 votes Vote down Vote up Reply

Like how easy it is to host static content with Express. I hate how poorly it performs though. Even Apache runs circles around Express. Of course, you can't blame Express. Node desperately needs sendfile support to even be considered for serving static files.

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java