I'm a beginner with angular and I want to host a simple application on the host uol to study.
The server is working but I can not redirect it to the home page of my application.
Thecodeoftheserver.jsthatisrunningisthis:
// Load the http module to create an http server.
var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World 2\n");
});
// Listen on port 8080, IP defaults to 127.0.0.1
server.listen(process.env.PORT || config.port);
console.log("Listening on port: " + (process.env.PORT || config.port));