NodeJS + ExpressJS - how to point my domain name to port 3000?
<p>In my live server I have my expressjs app running at </p>

<pre><code>http://122.22.11.22:3000
</code></pre>

<p>But how can I use a <strong>domain name</strong> or <strong>sub domain name</strong> instead? for instace:</p>

<pre><code>http://my-express.com
</code></pre>

<p>or</p>

<pre><code>http://exress.mymastersite.com
</code></pre>

<p>I use express-generator to create my express skeleton btw. And I am on Linux Arch.</p>

<p>Any ideas?</p>

<p>Inside bin/www I have this code below generated by the express-generator automatically by default:</p>

<pre><code>#!/usr/bin/env node

/**
 * Module dependencies.
 */

var app = require('../app');
var debug = require('debug')('mongoose-iot:server');
var http = require('http');

/**
 * Get port from environment and store in Express.
 */

var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);

/**
 * Create HTTP server.
 */

var server = http.createServer(app);

/**
 * Listen on provided port, on all network interfaces.
 */

server.listen(port);
server.on('error', onError);
server.on('listening', onListening);

....
....
....
</code></pre>