I have a logo that is residing at the public/images/logo.gif. Here is my nodejs code.
public/images/logo.gif
http.createServer(function(req, res){ res.writeHead(200,
You should use the express framework.
npm install express
and then
var express = require('express'); var app = express(); app.use(express.static(__dirname + '/public')); app.listen(8080);
and then the URL localhost:8080/images/logo.gif should work.