title: How to deploy Node.JS application on Apache server?
body: <p>I am developing node.js application and wants to deploy on apache server and run with https url only.</p>
  
  <p>There is following url scheme I would like to configure on server.</p>
  
  <p><a href="https://example.com" rel="nofollow">https://example.com</a> runs node js application on <strong>1000</strong> port from <strong>/home/main/public_html/</strong> directory.
  <a href="https://example.com:1335" rel="nofollow">https://example.com:1335</a> runs node js application from <strong>/home/main/public_html/stagging/</strong> directory.
  <a href="https://example.com:4234" rel="nofollow">https://example.com:4234</a> runs node js application from <strong>/home/main/public_html/development/</strong> directory.</p>
  
  <p>I want to achieve this type of url output from server.</p>
  
  <p>I tried following way to achieve this but it display just directory listing only. I want to execute nodejs application.</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@domain.com
      ServerName sub.domain.com
      ProxyRequests Off
  
      #Executes code from main directory
      &lt;Proxy https://whizbite.com:1000&gt;
          Order deny,allow
          Allow from all
          ProxyPreserveHost off
          ProxyPass https://localhost:8080/
          ProxyPassReverse https://localhost:8080/
      &lt;/Proxy&gt;
  
      #Executes code from staging directory
      &lt;Proxy https://whizbite.com:1335&gt;
          Order deny,allow
          Allow from all
          ProxyPreserveHost off
          ProxyPass https://localhost:8080/staging/
          ProxyPassReverse https://localhost:8080/staging/
      &lt;/Proxy&gt;
  
      #Executes code from development directory
      &lt;Proxy https://whizbite.com:4234&gt;
          Order deny,allow
          Allow from all
          ProxyPreserveHost off
          ProxyPass https://localhost:8080/development/
          ProxyPassReverse https://localhost:8080/development/
      &lt;/Proxy&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I really don't know how to achieve above url scheme by modification of apache configuration.</p>