title: Nodejs/Apache config for proxy pass
body: <p>I want to use Nodejs/Apache proxy pass to serve my APIs, but after add below apache(httpd) config, it seems that config not working. </p>
  
  <p>OS: </p>
  
  <pre><code>CentOS 6
  </code></pre>
  
  <p>/etc/httpd/conf/httpd.conf:</p>
  
  <pre><code>...
  &lt;VirtualHost *:80&gt;
     ServerName example.com
     ServerAlias www.example.com
   
     DocumentRoot /home/MyUser/public_html
     &lt;Directory /&gt;
        Options -Indexes +FollowSymLinks
        AllowOverride None
        Require all granted
     &lt;/Directory&gt;
   
     ProxyRequests Off
     ProxyPreserveHost On
     ProxyVia Full
     &lt;Proxy *&gt;
        Require all granted
     &lt;/Proxy&gt;
   
     &lt;Location /api&gt;
        ProxyPass http://MyVpsIp:1337
        ProxyPassReverse http://MyVpsIp:1337
     &lt;/Location&gt;
   
  &lt;/VirtualHost&gt;
  ...
  </code></pre>
  
  <p>after: </p>
  
  <pre><code>sudo service httpd restart
  </code></pre>
  
  <p>Open example.com/api in the browser: </p>
  
  <pre><code>Not Found
  The requested URL /api was not found on this server.
  </code></pre>
  
  <p><strong>EDIT:</strong> 
  when I open <code>example.com:1337/api</code> in the browser, everything is ok! but I want <code>example.com/api</code></p>