var http = require("http");
var fs = require('fs'); // file handling
var config = require('config').Appcast; // configuration
var config = require('config').Logging; // log configuration

function start(handler) {
	function onRequest(request, response) {
  	handler(request); // handle request: save to database etc.

  	fs.readFile(config.path, {encoding: 'utf-8'}, function (err, data) {
  		if (err) {
  			response.writeHead(404, {"Content-Type":"text/plain"});
  			console.log(err);

  		} else {
  			response.writeHead(200, {"Content-Type": "text/xml"});
  			response.write(data);
  		}

		response.end();
  	});
  }

  http.createServer(onRequest).listen(8888);
  console.log("Server has started.");
}

exports.start = start;
@@ -62,25 +62,32 @@
 andling%0Avar 
-c
+appcastC
 onfig = requ
@@ -130,17 +130,20 @@
 ion%0Avar 
-c
+logC
 onfig = 
@@ -336,17 +336,24 @@
 eadFile(
-c
+appcastC
 onfig.pa

Fix #3: overwriting var config results in fatal error