How proxy Apache to nodejs or other app

source: https://stackoverflow.com/questions/14259321/apache-node-js-mod-proxy-how-to-route-one-domain-to-3000-and-another-to-8

 

1 enable in Apache / httpd.conf

mod_proxy.so and mod_proxy_http.so

LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_module modules/mod_proxy.so
2 in httpd-vhosts.conf

<VirtualHost *:88>
    ServerAdmin admin@gmail.com
    ServerName node.localhost
    ServerAlias node.localhost

    ProxyRequests off

    <Proxy *>
            Order deny,allow
            Allow from all
    </Proxy>

    <Location />
            ProxyPass http://localhost:9002/
            ProxyPassReverse http://localhost:9002/
    </Location>

</VirtualHost>
Restart apache
 enjoy!