title: config xampp for nodejs
body: <p>Why do I see the following page on the Apache Web Server</p>
  
  <p>Displays the code of the page?</p>
  
  <pre><code>http://localhost/main.js
  </code></pre>
  
  <p>I install <a href="http://nodejs.org/#download" rel="nofollow">Windows Installer</a>.</p>
  
  <p>I'm running all the code written in the Command Prompt
  But this code can not see inside the browser</p>
  
  <p>In other words,</p>
  
  <p>How do I run nodejs code in a browser ?</p>
  
  <hr>
  
  <p>update,</p>
  
  <p>My Code : </p>
  
  <pre><code>var http = require('http');
  http.createServer(function (req, res) {
      res.writeHead(200, {
          'Content-Type': 'text/plain'
      });
      res.end('Hello World\n');
  }).listen(1337, '127.0.0.1');
  console.log('Server running at http://127.0.0.1:1337/');
  </code></pre>